summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/get_property/cache_properties.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/get_property/cache_properties.cmake')
-rw-r--r--Tests/RunCMake/get_property/cache_properties.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/get_property/cache_properties.cmake b/Tests/RunCMake/get_property/cache_properties.cmake
new file mode 100644
index 0000000..bf3e7ab
--- /dev/null
+++ b/Tests/RunCMake/get_property/cache_properties.cmake
@@ -0,0 +1,15 @@
+function (check_cache_property var prop)
+ get_property(gp_val
+ CACHE "${var}"
+ PROPERTY "${prop}")
+
+ message("get_property: -->${gp_val}<--")
+endfunction ()
+
+set(var val CACHE STRING "doc")
+set_property(CACHE var PROPERTY VALUE "") # empty
+set_property(CACHE var PROPERTY ADVANCED TRUE)
+
+check_cache_property(var VALUE)
+check_cache_property(var ADVANCED)
+check_cache_property(var noexist)