CMake/Tests/RunCMake/Languages/LINK_LANGUAGE-genex.cmake

5 lines
141 B
CMake

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