LinkImplementationCycle3.cmake 302 B

12345678910
  1. add_library(empty1 empty.cpp)
  2. add_library(empty2 empty.cpp)
  3. # This is OK, because evaluating the INCLUDE_DIRECTORIES is not affected by
  4. # the content of the INTERFACE_LINK_LIBRARIES.
  5. target_link_libraries(empty1
  6. INTERFACE
  7. $<$<STREQUAL:$<TARGET_PROPERTY:INCLUDE_DIRECTORIES>,/foo/bar>:empty2>
  8. )