From e2722a2ad5ce00a9a3edd3d75de9faa417222f17 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:39:50 +0100 Subject: Update cmake.lua --- xmake/modules/package/tools/cmake.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xmake/modules/package/tools/cmake.lua') 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") -- cgit v1.3.1