summaryrefslogtreecommitdiff
path: root/xmake/modules/package
diff options
context:
space:
mode:
authorChi Huu Huynh <[email protected]>2024-08-29 15:39:50 +0100
committerChi Huu Huynh <[email protected]>2024-08-29 15:39:50 +0100
commite2722a2ad5ce00a9a3edd3d75de9faa417222f17 (patch)
tree42c72bf2307a04dd81d48b9407cf5c8c09e3fc2a /xmake/modules/package
parentd7057eb144be99f09f18427e92eee52ccafc318f (diff)
Update cmake.lua
Diffstat (limited to 'xmake/modules/package')
-rw-r--r--xmake/modules/package/tools/cmake.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 8b1575d2e..61f49dacb 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -771,8 +771,10 @@ function _get_configs_for_generator(package, configs, opt)
table.insert(configs, "-G")
table.insert(configs, _get_cmake_generator_for_msvc(package))
elseif package:is_plat("wasm") and is_subhost("windows") then
- table.insert(configs, "-G")
- table.insert(configs, "MinGW Makefiles")
+ if not find_tool("ninja") then
+ table.insert(configs, "-G")
+ table.insert(configs, "MinGW Makefiles")
+ end
else
table.insert(configs, "-G")
table.insert(configs, "Unix Makefiles")