summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/get_property/DebugConfigurations.cmake
blob: 534beafcde7dfa0ae5d4c14d1f4c4e1678bbebd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

enable_language(CXX)

get_property(configs GLOBAL PROPERTY DEBUG_CONFIGURATIONS)
message("CONFIGS:${configs}")

add_library(iface1 INTERFACE)
target_link_libraries(iface1 INTERFACE debug external1)

get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")

set_property(GLOBAL APPEND PROPERTY DEBUG_CONFIGURATIONS EXTRA)
get_property(configs GLOBAL PROPERTY DEBUG_CONFIGURATIONS)
message("CONFIGS:${configs}")

get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")
target_link_libraries(iface1 INTERFACE debug external2)
get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")

set_property(GLOBAL PROPERTY DEBUG_CONFIGURATIONS NEW CONFIGS)
get_property(configs GLOBAL PROPERTY DEBUG_CONFIGURATIONS)
message("CONFIGS:${configs}")

get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")
target_link_libraries(iface1 INTERFACE debug external3)
get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")

set_property(GLOBAL APPEND PROPERTY DEBUG_CONFIGURATIONS EXTRA)
get_property(configs GLOBAL PROPERTY DEBUG_CONFIGURATIONS)
message("CONFIGS:${configs}")

get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")
target_link_libraries(iface1 INTERFACE debug external4)
get_property(tgt_iface TARGET iface1 PROPERTY INTERFACE_LINK_LIBRARIES)
message("IFACE1:${tgt_iface}")