Browse Source

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`.
Brad King 8 years ago
parent
commit
6e4e7c6547
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Tests/RunCMake/add_executable/RunCMakeTest.cmake

+ 3 - 1
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()