mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
Tests: Fix RunCMake.XcodeProject XcodeSchemaGeneration case on arm64
Explicitly specify the xcodebuild scheme destination architecture to match the host.
This commit is contained in:
@@ -672,6 +672,7 @@ endif()
|
||||
|
||||
if(XCODE_VERSION)
|
||||
add_RunCMake_test(XcodeProject -DXCODE_VERSION=${XCODE_VERSION}
|
||||
-DCMAKE_HOST_SYSTEM_PROCESSOR=${CMAKE_HOST_SYSTEM_PROCESSOR}
|
||||
-DCMake_TEST_Swift=${CMake_TEST_Swift})
|
||||
add_RunCMake_test(XcodeProject-Embed -DXCODE_VERSION=${XCODE_VERSION})
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ function(XcodeSchemaGeneration)
|
||||
|
||||
run_cmake(XcodeSchemaGeneration)
|
||||
if (XCODE_VERSION VERSION_GREATER_EQUAL 13)
|
||||
set(maybe_destination -destination platform=macOS)
|
||||
set(maybe_destination -destination platform=macOS,arch=${CMAKE_HOST_SYSTEM_PROCESSOR})
|
||||
else()
|
||||
set(maybe_destination "")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user