From ce5ec4011ac7a76f39deae3027d90deabb5efd7a Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 28 Sep 2022 00:59:34 +0800 Subject: add arm64 for tools.cmake #2878 --- xmake/modules/package/tools/cmake.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/modules/package/tools/cmake.lua') 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 -- cgit v1.3.1