diff options
| author | ruki <[email protected]> | 2025-02-10 23:26:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-10 23:26:39 +0800 |
| commit | f46e058b93aba7537aac8db30ece0fc9b9b830f9 (patch) | |
| tree | 4ea8383a0c4f41c52456204de73304591b09b12a | |
| parent | 4ebeeb443c1b270550334c796ed4cde48640e406 (diff) | |
| parent | a59740d585a5c51a552312ce3af8947cb0cc7be3 (diff) | |
Merge pull request #6145 from SirLynix/patch-18
package.tools.cmake: Set CMAKE_SYSTEM_PROCESSOR when cross-compiling
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 1 |
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") |
