summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompatibleInterface/InterfaceString-mismatch-depend-self.cmake
blob: 187f29f796c70287f553b7d16a0e23a244c89c25 (plain)
1
2
3
4
5
6
7
8
9
10
11

add_library(foo UNKNOWN IMPORTED)
add_library(bar UNKNOWN IMPORTED)

set_property(TARGET foo APPEND PROPERTY COMPATIBLE_INTERFACE_STRING SOMEPROP)
set_property(TARGET foo PROPERTY INTERFACE_SOMEPROP prop)
set_property(TARGET bar PROPERTY INTERFACE_SOMEPROP prop)

add_executable(user main.cpp)
set_property(TARGET user PROPERTY SOMEPROP different)
target_link_libraries(user foo bar)