Skip to content

Commit e2722a2

Browse files
committed
Update cmake.lua
1 parent d7057eb commit e2722a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xmake/modules/package/tools/cmake.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,10 @@ function _get_configs_for_generator(package, configs, opt)
771771
table.insert(configs, "-G")
772772
table.insert(configs, _get_cmake_generator_for_msvc(package))
773773
elseif package:is_plat("wasm") and is_subhost("windows") then
774-
table.insert(configs, "-G")
775-
table.insert(configs, "MinGW Makefiles")
774+
if not find_tool("ninja") then
775+
table.insert(configs, "-G")
776+
table.insert(configs, "MinGW Makefiles")
777+
end
776778
else
777779
table.insert(configs, "-G")
778780
table.insert(configs, "Unix Makefiles")

0 commit comments

Comments
 (0)