mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Move the diagnostic that rejects the TARGET_OBJECTS generator expression in non-buildsystem context until after the check for whether the named target is an object library. This order will makes more sense than the previous order once TARGET_OBJECTS is allowed in non-buildsystem context.
8 lines
307 B
CMake
8 lines
307 B
CMake
add_library(iface INTERFACE)
|
|
target_sources(iface INTERFACE $<TARGET_OBJECTS:NoTarget>)
|
|
|
|
file(GENERATE OUTPUT test_output CONTENT $<TARGET_OBJECTS:NoTarget>)
|
|
file(GENERATE OUTPUT test_output2 CONTENT $<TARGET_PROPERTY:iface,INTERFACE_SOURCES>)
|
|
|
|
install(FILES $<TARGET_OBJECTS:NoTarget> DESTINATION objects)
|