From 6e4e7c6547fb4d379d564340d015af20e4a4e892 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 24 Oct 2017 08:10:42 -0400 Subject: 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`. --- Tests/RunCMake/add_executable/RunCMakeTest.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v0.12