Files
CMake/Tests/RunCMake/GenEx-LINK_LIBRARY/forbidden-arguments.cmake
T
Marc Chevrier 42965799b4 Genex: Add $<LINK_LIBRARY:...>
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
2022-02-08 00:02:32 +01:00

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>)