summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenEx-LINK_LIBRARY/invalid-property.cmake
blob: a8e3a5751cc7d3b0497dc515120f2cb3f41c1a55 (plain)
1
2
3
4
5
6
7
8
9
10
enable_language(C)

set (CMAKE_LINK_LIBRARY_USING_feat "<LIBRARY>")
set (CMAKE_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)

add_library(dep SHARED empty.c)
set_property(TARGET dep PROPERTY INTERFACE_LINK_LIBRARIES_DIRECT_EXCLUDE "$<LINK_LIBRARY:feat,dep>")

add_library(lib SHARED empty.c)
target_link_libraries(lib PRIVATE dep)