summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-11-21 16:35:41 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-11-21 16:35:41 (GMT)
commitfb3c5bfdbe87786169dfe6d3ddaa86f4f6a5676f (patch)
treece6bddd731e8c0bd4b2e3d750807481d525bc41e /Tests/RunCMake
parentdaeadde88871f4e2473ce429f459ae8d6ed0ffb8 (diff)
downloadCMake-fb3c5bfdbe87786169dfe6d3ddaa86f4f6a5676f.zip
CMake-fb3c5bfdbe87786169dfe6d3ddaa86f4f6a5676f.tar.gz
CMake-fb3c5bfdbe87786169dfe6d3ddaa86f4f6a5676f.tar.bz2
cmTargetPropertyComputer: whitelist custom properties
CMake's properties will never begin with an underscore or a lowercase letter, so allow them to be set by projects.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/interface_library/whitelist.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/interface_library/whitelist.cmake b/Tests/RunCMake/interface_library/whitelist.cmake
index 98ef05c..bf64f01 100644
--- a/Tests/RunCMake/interface_library/whitelist.cmake
+++ b/Tests/RunCMake/interface_library/whitelist.cmake
@@ -4,3 +4,13 @@ add_library(iface INTERFACE)
set_property(TARGET iface PROPERTY OUTPUT_NAME output)
set_property(TARGET iface APPEND PROPERTY OUTPUT_NAME append)
get_target_property(outname iface OUTPUT_NAME)
+
+# Properties starting with `_` are allowed.
+set_property(TARGET iface PROPERTY "_custom_property" output)
+set_property(TARGET iface APPEND PROPERTY "_custom_property" append)
+get_target_property(outname iface "_custom_property")
+
+# Properties starting with a lowercase letter are allowed.
+set_property(TARGET iface PROPERTY "custom_property" output)
+set_property(TARGET iface APPEND PROPERTY "custom_property" append)
+get_target_property(outname iface "custom_property")