summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-25 23:54:18 +0800
committerruki <[email protected]>2020-09-25 23:54:18 +0800
commit2bccb1bc0add2a4c7213b179a67313bb90694676 (patch)
tree23556a33b826aa107f81314bc05128072830392e /xmake/modules/package/tools/cmake.lua
parent1b106cdba669bb01b3ffb6567a4f9814488b31e2 (diff)
revert cmake/ninja
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index f7102286c..9ae25066f 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -425,7 +425,7 @@ function build(package, configs, opt)
elseif cmake_generator then
if cmake_generator:find("Visual Studio", 1, true) then
_build_for_msvc(package, configs, opt)
- elseif cmake_generator:find("Ninja", 1, true) then
+ elseif cmake_generator == "Ninja" then
_build_for_ninja(package, configs, opt)
elseif cmake_generator:find("Makefiles", 1, true) then
_build_for_make(package, configs, opt)
@@ -483,7 +483,7 @@ function install(package, configs, opt)
elseif cmake_generator then
if cmake_generator:find("Visual Studio", 1, true) then
_install_for_msvc(package, configs, opt)
- elseif cmake_generator:find("Ninja", 1, true) then
+ elseif cmake_generator == "Ninja" then
_install_for_ninja(package, configs, opt)
elseif cmake_generator:find("Makefiles", 1, true) then
_install_for_make(package, configs, opt)