diff options
| author | ruki <[email protected]> | 2024-01-26 09:38:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-26 09:38:56 +0800 |
| commit | ddd492657889e5a1a9315047b125e764e10e4abb (patch) | |
| tree | df168febc3f464bf4ffca2b1f991c77423c7057e | |
| parent | 21aeb8d32ec1892904cc34a57e9c2c3d83b9f1bd (diff) | |
| parent | 515fff23650bc7de4dbab7ea24d8b64e66c89360 (diff) | |
Merge pull request #4656 from xq114/dev
Set CMAKE_OSX_ARCHITECTURES on macosx
| -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 859af33dc..ecee111d8 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -429,6 +429,7 @@ function _get_configs_for_appleos(package, configs, opt) elseif package:is_plat("macosx") then envs.CMAKE_SYSTEM_NAME = "Darwin" end + envs.CMAKE_OSX_ARCHITECTURES = package:arch() envs.CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = "BOTH" envs.CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = "BOTH" envs.CMAKE_FIND_ROOT_PATH_MODE_FRAMEWORK = "BOTH" |
