From 51ab0dfbb19082084c96740273ddf1a897a11c97 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 15 Sep 2018 00:02:37 +0800 Subject: add arch to cmake.build --- xmake/modules/package/builder/cmake.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/modules/package/builder/cmake.lua b/xmake/modules/package/builder/cmake.lua index 0146c259a..42c785fcf 100644 --- a/xmake/modules/package/builder/cmake.lua +++ b/xmake/modules/package/builder/cmake.lua @@ -30,8 +30,7 @@ import("lib.detect.find_file") function build(package) os.mkdir("build/install") os.cd("build") - -- TODO -a x64/x86 - os.vrun("cmake -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, is_mode("debug") and "Debug" or "Release", is_arch("x64") and "x64" or "Win32") -- cgit v1.3.1