summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 03150173c..742adcf61 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -194,7 +194,7 @@ function _get_configs_for_generator(package, configs, opt)
end
table.insert(configs, "-G")
table.insert(configs, cmake_generator)
- elseif package:is_plat("mingw") and is_host("host") then
+ elseif package:is_plat("mingw") and is_host("windows") then
table.insert(configs, "-G")
table.insert(configs, "MSYS Makefiles")
end