You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
344 B
11 lines
344 B
enable_language(C)
|
|
|
|
set(CMAKE_LINK_LIBRARY_USING_feature "<LIBRARY>")
|
|
set(CMAKE_LINK_LIBRARY_USING_feature_SUPPORTED TRUE)
|
|
set(CMAKE_LINK_LIBRARY_feature_ATTRIBUTES DEDUPLICATION=YES LIBRARY_TYPE=STATIC,BAD_TYPE)
|
|
|
|
add_library(dep SHARED empty.c)
|
|
|
|
add_library(lib SHARED empty.c)
|
|
target_link_libraries(lib PRIVATE "$<LINK_LIBRARY:feature,dep>")
|