make cpp-ipc support cross (#5737)

pull/5740/head
xpxz 2 weeks ago committed by GitHub
parent de3000415f
commit ae02d14e9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/c/cpp-ipc/xmake.lua

@ -15,7 +15,7 @@ package("cpp-ipc")
add_syslinks("advapi32")
end
on_install("windows", "linux", "mingw", function (package)
on_install("windows", "linux", "mingw", "cross", function (package)
local configs = {"-DLIBIPC_BUILD_TESTS=OFF", "-DLIBIPC_BUILD_DEMOS=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DLIBIPC_BUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save