mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 00:29:55 -06:00
This generator expression offers the capability, for the link step, to decorate libraries with prefix/suffix flags and/or adding any specific flag for each library. Fixes: #22812, #18751, #20078, #22703
7 lines
151 B
CMake
7 lines
151 B
CMake
enable_language(C)
|
|
|
|
add_library(dep SHARED empty.c)
|
|
|
|
add_library(lib SHARED empty.c)
|
|
target_link_libraries(lib PRIVATE "$<LINK_LIBRARY:bad_feat,dep>")
|