Merge topic 'ci-test-apple-silicon' into release-4.0

a44a2d2579 ci: Explicitly enable or disable RunCMake.AppleSilicon test in macos jobs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10454
This commit is contained in:
Brad King
2025-03-11 13:24:51 +00:00
committed by Kitware Robot

View File

@@ -16,3 +16,9 @@ set(BUILD_QtDialog ON CACHE BOOL "")
# when CMake itself is configured. Use a version that is not
# newer than the macOS version running on any CI host.
set(CMake_TEST_XCTest_DEPLOYMENT_TARGET "10.15" CACHE STRING "")
if("$ENV{CMAKE_CONFIGURATION}" MATCHES "macos_arm64")
set(CMake_TEST_APPLE_SILICON ON CACHE BOOL "")
else()
set(CMake_TEST_APPLE_SILICON OFF CACHE BOOL "")
endif()