From ae02d14e9ae1a2420340cde1dffe0088102746d5 Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:29:05 +0800 Subject: [PATCH] make cpp-ipc support cross (#5737) --- packages/c/cpp-ipc/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/c/cpp-ipc/xmake.lua b/packages/c/cpp-ipc/xmake.lua index 44786a021..0acd96497 100644 --- a/packages/c/cpp-ipc/xmake.lua +++ b/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"))