summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2024-06-13 14:55:24 +0200
committerGitHub <[email protected]>2024-06-13 14:55:24 +0200
commitbaa08345ba9fbb6931fbaeebc36838514ebb7cbb (patch)
tree5ae591d4afb8c1eaa4c8c01dabb8810461ee1d5a
parentb7f944a8d6189f3556070e5487cde61fa20557f2 (diff)
Update cmake.lua
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index 2f9d5d1b0..5b6d3d5cc 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -168,7 +168,7 @@ function _get_configs_for_appleos(configs)
end
elseif _is_cross_compilation() then
envs.CMAKE_SYSTEM_NAME = "Darwin"
- envs.CMAKE_SYSTEM_PROCESSOR = package:targetarch()
+ envs.CMAKE_SYSTEM_PROCESSOR = os.subarch()
end
envs.CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = "BOTH"
envs.CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = "BOTH"