b8dc7fad23
For shared libraries and executables, the linker_language is indepenedent of the linked libraries.
5 lines
159 B
CMake
5 lines
159 B
CMake
|
|
add_library(foo STATIC empty.cpp)
|
|
add_library(bar STATIC empty.cpp)
|
|
target_link_libraries(foo $<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,anything>:bar>)
|