diff options
| author | Arthur LAURENT <[email protected]> | 2023-06-12 13:41:42 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-06-12 13:41:42 +0200 |
| commit | d915f44b9fe3ab64fa975b50f5b333eee5f7723b (patch) | |
| tree | 5d9d495e415cb59e6d150ff0d8a95a6335be1ae3 /xmake/modules/package/tools/cmake.lua | |
| parent | 2018f5b4c66b89a72c02fd771433a1ce07090dea (diff) | |
allow custom system name when cross compiling
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index b3d669c51..09499bde1 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -512,7 +512,7 @@ function _get_configs_for_cross(package, configs, opt) -- we need not set it as cross compilation if we just pass toolchain -- https://github.com/xmake-io/xmake/issues/2170 if not package:is_plat(os.subhost()) then - envs.CMAKE_SYSTEM_NAME = "Linux" + envs.CMAKE_SYSTEM_NAME = opt.system_name or "Linux" else if package:config("pic") ~= false then table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON") |
