CMake/Tests/RunCMake/Languages/link-libraries-TARGET_FILE-...

7 lines
165 B
CMake

enable_language(CXX)
add_library(foo SHARED empty.cpp)
add_library(bar SHARED empty.cpp)
target_link_libraries(foo $<$<STREQUAL:$<TARGET_FILE:bar>,anything>:bar>)