diff options
author | Brad King <brad.king@kitware.com> | 2021-10-06 14:24:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-10-06 14:24:16 (GMT) |
commit | 434f757233710f8d1c9ff3e7995a57eee527fe2d (patch) | |
tree | 54c0626267d5946569d7efccff0aa61e0d0636ae /Tests | |
parent | 86f79694c42d92f576b62c9e68c9e6483b51b4bb (diff) | |
parent | 0e86fea0bee63592e024c330b22939ec7846712e (diff) | |
download | CMake-434f757233710f8d1c9ff3e7995a57eee527fe2d.zip CMake-434f757233710f8d1c9ff3e7995a57eee527fe2d.tar.gz CMake-434f757233710f8d1c9ff3e7995a57eee527fe2d.tar.bz2 |
Merge topic 'xcode13-schema'
0e86fea0be Tests: Specify destination for Xcode scheme
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6582
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/XcodeProject/RunCMakeTest.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake index ed8e725..fa26c3d 100644 --- a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake +++ b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake @@ -91,7 +91,12 @@ function(XcodeSchemaGeneration) file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}") run_cmake(XcodeSchemaGeneration) - run_cmake_command(XcodeSchemaGeneration-build xcodebuild -scheme foo build) + if (XCODE_VERSION VERSION_GREATER_EQUAL 13) + set(maybe_destination -destination platform=macOS) + else() + set(maybe_destination "") + endif() + run_cmake_command(XcodeSchemaGeneration-build xcodebuild -scheme foo ${maybe_destination} build) endfunction() if(NOT XCODE_VERSION VERSION_LESS 7) |