summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/set_property/USER_PROP_INHERITED
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-03-21 09:35:38 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-03-21 10:38:47 (GMT)
commit9cc97ab4dc647b1ca9b67bb7300453c8341607a7 (patch)
treedcb713346eb42e2bcd0cc4238a91bc18f2f699e9 /Tests/RunCMake/set_property/USER_PROP_INHERITED
parent5831b6a2aec74cd9d1d10b1d047da8fa0411c828 (diff)
downloadCMake-9cc97ab4dc647b1ca9b67bb7300453c8341607a7.zip
CMake-9cc97ab4dc647b1ca9b67bb7300453c8341607a7.tar.gz
CMake-9cc97ab4dc647b1ca9b67bb7300453c8341607a7.tar.bz2
Tests: Add tests for INHERITED property chaining
Diffstat (limited to 'Tests/RunCMake/set_property/USER_PROP_INHERITED')
-rw-r--r--Tests/RunCMake/set_property/USER_PROP_INHERITED/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/RunCMake/set_property/USER_PROP_INHERITED/CMakeLists.txt b/Tests/RunCMake/set_property/USER_PROP_INHERITED/CMakeLists.txt
new file mode 100644
index 0000000..234f4ee
--- /dev/null
+++ b/Tests/RunCMake/set_property/USER_PROP_INHERITED/CMakeLists.txt
@@ -0,0 +1,21 @@
+get_property(val DIRECTORY PROPERTY USER_PROP2)
+message(STATUS "Subdir-to-parent chaining: '${val}'")
+
+get_property(val DIRECTORY PROPERTY USER_PROP1)
+message(STATUS "Subdir-to-global chaining: '${val}'")
+
+set_property(DIRECTORY PROPERTY USER_PROP1 vSubdir)
+get_property(val DIRECTORY PROPERTY USER_PROP1)
+message(STATUS "Subdir no chaining required: '${val}'")
+
+set_property(DIRECTORY APPEND PROPERTY USER_PROP1 aSubdir)
+get_property(val DIRECTORY PROPERTY USER_PROP1)
+message(STATUS "Subdir preset append chaining: '${val}'")
+
+set_property(DIRECTORY APPEND PROPERTY USER_PROP2 aSubdir)
+get_property(val DIRECTORY PROPERTY USER_PROP2)
+message(STATUS "Subdir unset append chaining: '${val}'")
+
+set_property(DIRECTORY APPEND PROPERTY USER_PROP5 aSubdir)
+get_property(val DIRECTORY PROPERTY USER_PROP5)
+message(STATUS "Subdir undefined append chaining: '${val}'")