mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
42965799b4
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
194 B
CMake
7 lines
194 B
CMake
enable_language(C)
|
|
|
|
link_libraries(<LINK_LIBRARY:feat> foo </LINK_LIBRARY:feat>)
|
|
|
|
add_library(lib SHARED empty.c)
|
|
target_link_libraries(lib PRIVATE <LINK_LIBRARY:feat> foo </LINK_LIBRARY:feat>)
|