mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 07:38:33 -05:00
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>)
|