summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-10-10 23:34:01 +0800
committerruki <[email protected]>2018-10-10 15:24:11 +0800
commit65f9d3c587300983795c6d744ac847779473fd3b (patch)
tree42da068df5c20f50b7b2bbf0c3fb68d27dcd00f6 /xmake/modules/package/tools/cmake.lua
parent3a0638eb9411258a790d6735f677e12018a6d43d (diff)
fix cmake for x64
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index a4c94bc33..0eeef1bfc 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -30,7 +30,7 @@ import("lib.detect.find_file")
function install(package, configs)
os.mkdir("build/install")
local oldir = os.cd("build")
- os.vrun("cmake -a $(arch) -DCMAKE_INSTALL_PREFIX=\"%s\" ..", path.absolute("install"))
+ os.vrun("cmake -A $(arch) -DCMAKE_INSTALL_PREFIX=\"%s\" ..", path.absolute("install"))
if is_host("windows") then
local slnfile = assert(find_file("*.sln", os.curdir()), "*.sln file not found!")
os.vrun("msbuild \"%s\" -nologo -t:Rebuild -p:Configuration=%s -p:Platform=%s", slnfile, package:debug() and "Debug" or "Release", is_arch("x64") and "x64" or "Win32")