blob: a888bb8a12d296cc3f8886370465da39eaa3cf4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
enable_language(C)
set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
set(CMAKE_C_LINK_LIBRARY_USING_feat "<LIBRARY>")
add_library(dep OBJECT empty.c)
add_library(lib SHARED empty.c)
add_library(front INTERFACE)
target_link_libraries(front INTERFACE lib)
add_library(lib2 SHARED empty.c)
target_link_libraries(lib2 PRIVATE "$<LINK_LIBRARY:feat,front,dep>")
|