diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-07-07 13:33:02 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-07-07 13:33:02 +0800 |
commit | a09b7d7679ba34482e267f9a5b39a79fd3866af4 (patch) | |
tree | 2b4438f93d6089c8f0b5873241378cf306dc795b /indra | |
parent | faa8e3bc698ed3eb2ff21d08b8a3d093ab12ff6c (diff) |
Not override CMAKE_OSX_ARCHITECTURES to one arch
Now you can pass -DCMAKE_OSX_ARCHITECTURES:STRING=`uname -m` or
-DCMAKE_OSX_ARCHITECTURES:STRING="arm64;x86_64" and it will build
as intended.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/cmake/Variables.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/cmake/Variables.cmake b/indra/cmake/Variables.cmake index 59725ecc65..f1a4d43f90 100644 --- a/indra/cmake/Variables.cmake +++ b/indra/cmake/Variables.cmake @@ -204,7 +204,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "") set(CMAKE_XCODE_ATTRIBUTE_DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING YES) set(CMAKE_XCODE_ATTRIBUTE_GCC_WARN_64_TO_32_BIT_CONVERSION NO) - set(CMAKE_OSX_ARCHITECTURES "${ARCH}") + #set(CMAKE_OSX_ARCHITECTURES "${ARCH}") string(REPLACE "i686" "i386" CMAKE_OSX_ARCHITECTURES "${CMAKE_OSX_ARCHITECTURES}") string(REPLACE "AMD64" "x86_64" CMAKE_OSX_ARCHITECTURES "${CMAKE_OSX_ARCHITECTURES}") endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |