From 760ccdd1beb3673ed282f75bb630f3ecdbcfabd3 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:09:40 +0100 Subject: Update cmake.lua --- xmake/modules/package/tools/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.3.1