target_link_options incorrectly collapses -framework argument
MacOS, CMake 3.13.2
CMakeLists.txt
:
add_library(aaa INTERFACE)
target_link_options(aaa INTERFACE -framework Carbon)
add_library(bbb INTERFACE)
target_link_options(bbb INTERFACE -framework SystemConfiguration)
add_executable(ccc ccc.cc)
target_link_libraries(ccc aaa bbb)
ccc.cc
:
int main() {}
make VERBOSE=1
prints:
/Applications/Xcode_9.2.0_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names -framework Carbon SystemConfiguration CMakeFiles/ccc.dir/ccc.o -o ccc
(and compilation fails)
See -framework Carbon SystemConfiguration
part? Should be -framework Carbon -framework SystemConfiguration
. Arguments collapsed incorrectly.