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

5 lines
143 B
CMake
Raw Normal View History

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