summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-28 00:59:34 +0800
committerruki <[email protected]>2022-09-28 00:59:34 +0800
commitce5ec4011ac7a76f39deae3027d90deabb5efd7a (patch)
treefd983356489868c5a71286a802f162186386ebea /xmake/modules/package/tools/cmake.lua
parent3cfc08b2bba608a0b434384ec4eec435407e5ef8 (diff)
add arm64 for tools.cmake #2878
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 30f809671..389dbecf6 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -287,6 +287,10 @@ function _get_configs_for_windows(package, configs, opt)
table.insert(configs, "-A")
if package:is_arch("x86", "i386") then
table.insert(configs, "Win32")
+ elseif package:is_arch("arm64") then
+ table.insert(configs, "ARM64")
+ elseif package:is_arch("arm.*") then
+ table.insert(configs, "ARM")
else
table.insert(configs, "x64")
end