mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
We don't define behavior for relative paths to the OUTPUT argument. Fix our tests to use full paths.
8 lines
363 B
CMake
8 lines
363 B
CMake
add_library(iface INTERFACE)
|
|
target_sources(iface INTERFACE $<TARGET_OBJECTS:NoTarget>)
|
|
|
|
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_output CONTENT $<TARGET_OBJECTS:NoTarget>)
|
|
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_output2 CONTENT $<TARGET_PROPERTY:iface,INTERFACE_SOURCES>)
|
|
|
|
install(FILES $<TARGET_OBJECTS:NoTarget> DESTINATION objects)
|