mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
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`.
8 lines
212 B
CMake
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()
|