diff options
| author | ruki <[email protected]> | 2020-12-08 22:36:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-08 22:36:38 +0800 |
| commit | 0484d0968ce8683c127e0ce0d4befc2efed00894 (patch) | |
| tree | 6b6ba6aa433a9c332e00c927d132f0901f866779 | |
| parent | 3415c225d8f047c7ebb1cab1b28b21d9e12efed0 (diff) | |
improve cmake/tools for mingw
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 160568cd1..41dae509b 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -338,9 +338,12 @@ 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("windows") then + elseif package:is_plat("mingw") and is_subhost("msys") then table.insert(configs, "-G") table.insert(configs, "MSYS Makefiles") + elseif package:is_plat("mingw") and is_subhost("windows") then + table.insert(configs, "-G") + table.insert(configs, "MinGW Makefiles") elseif package:is_plat("windows") then table.insert(configs, "-G") table.insert(configs, _get_cmake_generator_for_msvc()) |
