https://github.com/Kitware/CMake
Raw File
Tip revision: 12a139f2b6610e688be3d2bd317d46f0ce6ddf1f authored by Brad King on 03 March 2021, 16:43:22 UTC
CMake 3.20.0-rc3
Tip revision: 12a139f
LinkImplementationCycle6.cmake

add_library(empty1 SHARED empty.cpp)
add_library(empty2 SHARED empty.cpp)

# The INTERFACE_INCLUDE_DIRECTORIES do not depend on the link interface.
# On its own, this is fine. It is only when used by empty3 that an error
# is appropriately issued.
target_link_libraries(empty1
  INTERFACE
    $<$<STREQUAL:$<TARGET_PROPERTY:INTERFACE_INCLUDE_DIRECTORIES>,/foo/bar>:empty2>
)

add_library(empty3 SHARED empty.cpp)
target_link_libraries(empty3 empty1)
back to top