CMake/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS...

7 lines
142 B
CMake

enable_language(CXX)
add_library(foo OBJECT empty.cpp)
add_executable(bar $<TARGET_OBJECTS:foo>)
get_target_property(location bar LOCATION)