diff options
| author | ruki <[email protected]> | 2018-09-15 00:02:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-15 00:02:37 +0800 |
| commit | 51ab0dfbb19082084c96740273ddf1a897a11c97 (patch) | |
| tree | c1831b9608789d916c599f04b0fdd187c8c12674 | |
| parent | 16408b969fd8e96f5ab9c74be4469ca66187165e (diff) | |
add arch to cmake.build
| -rw-r--r-- | xmake/modules/package/builder/cmake.lua | 3 |
1 files changed, 1 insertions, 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") |
