summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2025-02-10 10:44:55 +0100
committerGitHub <[email protected]>2025-02-10 10:44:55 +0100
commita59740d585a5c51a552312ce3af8947cb0cc7be3 (patch)
tree4ea8383a0c4f41c52456204de73304591b09b12a
parent4ebeeb443c1b270550334c796ed4cde48640e406 (diff)
package.tools.cmake: Set CMAKE_SYSTEM_PROCESSOR when cross-compiling
This is already done in other places
-rw-r--r--xmake/modules/package/tools/cmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 2599de853..fab2d0ff4 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -676,6 +676,7 @@ function _get_configs_for_cross(package, configs, opt)
system_name = "Windows"
end
envs.CMAKE_SYSTEM_NAME = system_name
+ envs.CMAKE_SYSTEM_PROCESSOR = _get_cmake_system_processor(package)
end
if not package:is_plat("windows", "mingw") and package:config("pic") ~= false then
table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")