summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-18 22:37:14 +0800
committerruki <[email protected]>2020-09-18 22:37:14 +0800
commit355b3c3baef1faa6884fbaf46990cabbe18df468 (patch)
treeffe45e61f06eff8c0e050eefa4f5631aa2079951 /xmake/modules/package/tools/cmake.lua
parentd72c2f9e7792be4d0748b5df7ab4c2c8bd83a49d (diff)
improve cmake tools again
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 de4f83051..b9539b8b4 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -276,7 +276,7 @@ function build(package, configs, opt)
end
if is_host("bsd") then
os.vrunv("gmake", argv)
- elseif is_subhost("windows") and is_plat("mingw") then
+ elseif is_subhost("windows") and package:is_plat("mingw") then
local mingw = assert(package:build_getenv("mingw") or package:build_getenv("sdk"), "mingw not found!")
local mingw_make = path.join(mingw, "bin", "mingw32-make.exe")
os.vrunv(mingw_make, argv)
@@ -346,7 +346,7 @@ function install(package, configs, opt)
if is_host("bsd") then
os.vrunv("gmake", argv)
os.vrunv("gmake", {"install"})
- elseif is_subhost("windows") and is_plat("mingw") then
+ elseif is_subhost("windows") and package:is_plat("mingw") then
local mingw = assert(package:build_getenv("mingw") or package:build_getenv("sdk"), "mingw not found!")
local mingw_make = path.join(mingw, "bin", "mingw32-make.exe")
os.vrunv(mingw_make, argv)