Files
CMake/Tests/RunCMake/add_executable/RunCMakeTest.cmake
Brad King 6e4e7c6547 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`.
2017-10-24 08:11:29 -04:00

8 lines
212 B
CMake

include(RunCMake)
run_cmake(NoSources)
run_cmake(OnlyObjectSources)
if(NOT RunCMake_GENERATOR STREQUAL "Xcode" OR NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" MATCHES "[;$]")
run_cmake(NoSourcesButLinkObjects)
endif()