mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 07:39:47 -05:00
Merge topic 'test-BuildDepends-no-rosetta'
6b8c99a1e3 Tests: Fix BuildDepends on macOS arm64 without rosetta
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9277
This commit is contained in:
@@ -17,7 +17,9 @@ if(APPLE)
|
||||
# only use multi-arch if the sysroot exists on this machine
|
||||
# Ninja needs -M which could not be used with multiple -arch flags
|
||||
if(EXISTS "${CMAKE_OSX_SYSROOT}" AND NOT "${CMAKE_GENERATOR}" MATCHES "Ninja")
|
||||
if(CMake_TEST_XCODE_VERSION VERSION_GREATER_EQUAL 10)
|
||||
if(CMake_TEST_XCODE_VERSION VERSION_GREATER_EQUAL 12)
|
||||
set(CMAKE_OSX_ARCHITECTURES arm64 x86_64)
|
||||
elseif(CMake_TEST_XCODE_VERSION VERSION_GREATER_EQUAL 10)
|
||||
# Arch 'i386' no longer works in Xcode 10.
|
||||
set(CMAKE_OSX_ARCHITECTURES x86_64)
|
||||
elseif(CMake_TEST_XCODE_VERSION VERSION_GREATER_EQUAL 4)
|
||||
|
||||
Reference in New Issue
Block a user