summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenEx-TARGET_PROPERTY/LinkImplementationCycle3.cmake
blob: e084502793a9ce486986ee2dbbd3f7b05b9a235b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
enable_language(CXX)
add_library(empty1 empty.cpp)
add_library(empty2 empty.cpp)

# This is OK, because evaluating the INCLUDE_DIRECTORIES is not affected by
# the content of the INTERFACE_LINK_LIBRARIES.
target_link_libraries(empty1
  INTERFACE
    $<$<STREQUAL:$<TARGET_PROPERTY:INCLUDE_DIRECTORIES>,/foo/bar>:empty2>
)

# Suppress generator-specific targets that might pollute the stderr.
set(CMAKE_SUPPRESS_REGENERATION TRUE)