summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-07 14:25:07 +0800
committerGitHub <[email protected]>2021-09-07 14:25:07 +0800
commit42a7aaffe4d274b86945194462cbd61636ee39a4 (patch)
treebd75c6e1a9e75c58690454337e09fc5fc0e70ba0
parentab7b371299bed8dcdf4ff3bc07e2443d40daaa10 (diff)
Update 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 b6c286e5f..40a1ad2e5 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -564,7 +564,7 @@ function _build_for_make(package, configs, opt)
if ndk then
make = path.join(ndk, "prebuilt", "windows-x86_64", "bin", "make.exe")
end
- if not os.isfile(make) then
+ if not make or not os.isfile(make) then
make = "make"
end
os.vrunv(make, argv)
@@ -630,7 +630,7 @@ function _install_for_make(package, configs, opt)
if ndk then
make = path.join(ndk, "prebuilt", "windows-x86_64", "bin", "make.exe")
end
- if not os.isfile(make) then
+ if not make or not os.isfile(make) then
make = "make"
end
os.vrunv(make, argv)