summaryrefslogtreecommitdiff
path: root/Tests/CompatibleInterface
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-07 00:43:54 +0100
committerStephen Kelly <steveire@gmail.com>2013-02-07 16:21:09 +0100
commit46e28960a58a25bbf0124b6ab95eda24cc4fe1a4 (patch)
tree1655d3a5443fddc21d1fea6d5b8198078e4afa1a /Tests/CompatibleInterface
parent5f926a58026c3c750738e26975834b662fc85727 (diff)
downloadcmake-46e28960a58a25bbf0124b6ab95eda24cc4fe1a4.tar.gz
The COMPATIBLE_INTERFACE does not affect the target it is set on.
Test and document this.
Diffstat (limited to 'Tests/CompatibleInterface')
-rw-r--r--Tests/CompatibleInterface/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/CompatibleInterface/CMakeLists.txt b/Tests/CompatibleInterface/CMakeLists.txt
index 329510b058..cd0a37d20a 100644
--- a/Tests/CompatibleInterface/CMakeLists.txt
+++ b/Tests/CompatibleInterface/CMakeLists.txt
@@ -67,3 +67,18 @@ target_compile_definitions(CompatibleInterface
PRIVATE
$<$<BOOL:$<TARGET_PROPERTY:Iface2_PROP>>:SOME_DEFINE>
)
+
+# The COMPATIBLE_INTERFACE_* properties are only read from dependencies
+# in the interface. Populating it on the CompatibleInterface target does
+# not have any affect on the interpretation of the INTERFACE variants
+# in dependencies.
+set_property(TARGET iface1 PROPERTY
+ INTERFACE_NON_RELEVANT_PROP ON
+)
+set_property(TARGET iface2 PROPERTY
+ INTERFACE_NON_RELEVANT_PROP ON
+)
+set_property(TARGET CompatibleInterface APPEND PROPERTY
+ COMPATIBLE_INTERFACE_BOOL
+ NON_RELEVANT_PROP
+)