summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorChi Huu Huynh <[email protected]>2024-08-29 12:09:40 +0100
committerChi Huu Huynh <[email protected]>2024-08-29 12:09:40 +0100
commit760ccdd1beb3673ed282f75bb630f3ecdbcfabd3 (patch)
tree4a41f2086aacdafad0af2dca4a726feb190c51d0 /xmake/modules
parentb88ecaeb0c721c1d8d3d6ba3de366f8a65581c86 (diff)
Update cmake.lua
Diffstat (limited to 'xmake/modules')
-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 5e1eceb1a..9b4a01436 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -1155,7 +1155,7 @@ function _get_cmake_generator(package, opt)
if not cmake_generator then
if package:has_tool("cc", "clang_cl") or package:has_tool("cxx", "clang_cl") then
cmake_generator = "Ninja"
- elseif is_subhost("windows") and (package:is_plat("mingw", "wasm")) then
+ elseif is_subhost("windows") and package:is_plat("mingw", "wasm") then
local mingw_make = _get_mingw32_make(package)
if not mingw_make and find_tool("ninja") then
cmake_generator = "Ninja"