diff options
author | Brad King <brad.king@kitware.com> | 2017-10-24 12:10:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-24 12:11:29 (GMT) |
commit | 6e4e7c6547fb4d379d564340d015af20e4a4e892 (patch) | |
tree | 2e864ad39a033e1a935161967e79f9e3c5f6a05f /Tests | |
parent | 358ceee5d84723f60c2db5cdff52445d478d6a42 (diff) | |
download | CMake-6e4e7c6547fb4d379d564340d015af20e4a4e892.zip CMake-6e4e7c6547fb4d379d564340d015af20e4a4e892.tar.gz CMake-6e4e7c6547fb4d379d564340d015af20e4a4e892.tar.bz2 |
Tests: Exclude bad RunCMake.add_executable case on multi-arch Xcode
The `NoSourcesButLinkObjects` case would not be expected to work under
Xcode with multiple architectures even if the target objects were listed
directly as sources. Exclude it. We already exclude similar cases in
`RunCMake.add_library`.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/add_executable/RunCMakeTest.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/add_executable/RunCMakeTest.cmake b/Tests/RunCMake/add_executable/RunCMakeTest.cmake index 70a68f2..88916b7 100644 --- a/Tests/RunCMake/add_executable/RunCMakeTest.cmake +++ b/Tests/RunCMake/add_executable/RunCMakeTest.cmake @@ -2,4 +2,6 @@ include(RunCMake) run_cmake(NoSources) run_cmake(OnlyObjectSources) -run_cmake(NoSourcesButLinkObjects) +if(NOT RunCMake_GENERATOR STREQUAL "Xcode" OR NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" MATCHES "[;$]") + run_cmake(NoSourcesButLinkObjects) +endif() |