summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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