CMake/Tests/RunCMake/GenEx-TARGET_PROPERTY/LinkImplementationCycle5.cmake
Brad King a4d0e4ff8f Tests: Prepare RunCMake.GenEx-TARGET_PROPERTY for more independent cases
The existing cases all need to enable a language.  Move this out of the
`CMakeLists.txt` file and into the individual cases to make room for
other cases that may not need this.
2022-11-15 10:34:00 -05:00

14 lines
421 B
CMake

enable_language(CXX)
add_library(empty1 INTERFACE IMPORTED)
add_library(empty2 INTERFACE IMPORTED)
set_property(TARGET empty1 PROPERTY INTERFACE_LINK_LIBRARIES
$<$<STREQUAL:$<TARGET_PROPERTY:INTERFACE_INCLUDE_DIRECTORIES>,/foo/bar>:empty2>
)
add_library(empty3 empty.cpp)
target_link_libraries(empty3 empty1)
# Suppress generator-specific targets that might pollute the stderr.
set(CMAKE_SUPPRESS_REGENERATION TRUE)