summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfy <[email protected]>2018-12-12 18:34:43 +0800
committerfy <[email protected]>2018-12-12 18:34:43 +0800
commit4c59f260714576e2c23aa068b4a1beae62756fd3 (patch)
tree705795401bd95d749c14f3144609ea1c2f7ee2dc
parente1c447a8178ca22e315243a8b673b85b85742c8e (diff)
cmake "-A x64" fix
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index d73e3c0e1..3cf548d0a 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -36,7 +36,8 @@ function install(package, configs)
}
if is_plat("windows") and is_arch("x64") then
- table.insert(argv, "-A x64")
+ table.insert(argv, "-A")
+ table.insert(argv, "x64")
end
for name, value in pairs(configs) do
@@ -46,6 +47,7 @@ function install(package, configs)
end
end
+ table.insert(argv, '..')
os.vrunv("cmake", argv)
if is_host("windows") then