LinkImplementationCycle4.cmake 430 B

1234567891011121314
  1. add_library(empty1 empty.cpp)
  2. add_library(empty2 empty.cpp)
  3. # The INTERFACE_INCLUDE_DIRECTORIES do not depend on the link interface.
  4. # On its own, this is fine. It is only when used by empty3 that an error
  5. # is appropriately issued.
  6. target_link_libraries(empty1
  7. INTERFACE
  8. $<$<STREQUAL:$<TARGET_PROPERTY:INTERFACE_INCLUDE_DIRECTORIES>,/foo/bar>:empty2>
  9. )
  10. add_library(empty3 empty.cpp)
  11. target_link_libraries(empty3 empty1)