Tests: Fix RunCMake.XcodeProject XcodeSchemaGeneration case on arm64

Explicitly specify the xcodebuild scheme destination architecture to
match the host.
This commit is contained in:
Brad King
2023-05-09 14:23:26 -04:00
parent 25eddc2ef3
commit 6aae34ec53
2 changed files with 2 additions and 1 deletions

View File

@@ -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})

View File

@@ -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()