diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-02-06 23:43:54 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-02-07 15:21:09 (GMT) |
commit | 46e28960a58a25bbf0124b6ab95eda24cc4fe1a4 (patch) | |
tree | 1655d3a5443fddc21d1fea6d5b8198078e4afa1a /Tests/CompatibleInterface | |
parent | 5f926a58026c3c750738e26975834b662fc85727 (diff) | |
download | CMake-46e28960a58a25bbf0124b6ab95eda24cc4fe1a4.zip CMake-46e28960a58a25bbf0124b6ab95eda24cc4fe1a4.tar.gz CMake-46e28960a58a25bbf0124b6ab95eda24cc4fe1a4.tar.bz2 |
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.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/CompatibleInterface/CMakeLists.txt b/Tests/CompatibleInterface/CMakeLists.txt index 329510b..cd0a37d 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 +) |