summaryrefslogtreecommitdiff
path: root/Tests/CMakeTests/GetProperty-Doc-Properties.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeTests/GetProperty-Doc-Properties.cmake')
-rw-r--r--Tests/CMakeTests/GetProperty-Doc-Properties.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CMakeTests/GetProperty-Doc-Properties.cmake b/Tests/CMakeTests/GetProperty-Doc-Properties.cmake
new file mode 100644
index 000000000..6c2c3620e
--- /dev/null
+++ b/Tests/CMakeTests/GetProperty-Doc-Properties.cmake
@@ -0,0 +1,10 @@
+get_property(FOO_BRIEF GLOBAL PROPERTY FOO BRIEF_DOCS)
+get_property(FOO_FULL GLOBAL PROPERTY FOO FULL_DOCS)
+
+if (NOT FOO_BRIEF STREQUAL "NOTFOUND")
+ message(SEND_ERROR "property FOO has BRIEF_DOCS set to '${FOO_BRIEF}'")
+endif ()
+
+if (NOT FOO_FULL STREQUAL "NOTFOUND")
+ message(SEND_ERROR "property FOO has FULL_DOCS set to '${FOO_FULL}'")
+endif ()