mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-28 04:09:35 +03: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.
4 lines
104 B
CMake
4 lines
104 B
CMake
add_library(StaticLib empty.cpp)
|
|
|
|
file(GENERATE OUTPUT test_output CONTENT $<TARGET_OBJECTS:StaticLib>)
|