patch cmake

zydis-update
star9029 8 months ago
parent 3f95caf8ef
commit d10b9318cb
  1. 4
      packages/z/zydis/xmake.lua

@ -52,6 +52,10 @@ package("zydis")
package:add("defines", "ZYDIS_STATIC_BUILD")
end
if package:version():ge("4.1.0") then
io.replace("CMakeLists.txt", "set(ZYDIS_ROOT_PROJECT ON)", "", {plain = true})
end
local configs = {"-DZYAN_SYSTEM_ZYCORE=ON"}
table.insert(configs, "-DZYDIS_BUILD_EXAMPLES=OFF")
table.insert(configs, "-DZYDIS_BUILD_SHARED_LIB=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save