mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -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
5 lines
105 B
CMake
5 lines
105 B
CMake
enable_language(C)
|
|
|
|
add_library(lib SHARED empty.c)
|
|
target_link_libraries(lib PRIVATE "$<LINK_LIBRARY>")
|