diff options
author | Brad King <brad.king@kitware.com> | 2017-11-30 12:57:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-11-30 12:57:08 (GMT) |
commit | 5d43e46ad5e2760f0e149959dc09b1414d54f362 (patch) | |
tree | d98f9c8893e3f31010a03bb72dc4ff131ab422de /Tests | |
parent | 21806e6f5f817c4c6cd1d2a304839b460d1fdbbc (diff) | |
parent | fb3c5bfdbe87786169dfe6d3ddaa86f4f6a5676f (diff) | |
download | CMake-5d43e46ad5e2760f0e149959dc09b1414d54f362.zip CMake-5d43e46ad5e2760f0e149959dc09b1414d54f362.tar.gz CMake-5d43e46ad5e2760f0e149959dc09b1414d54f362.tar.bz2 |
Merge topic 'whitelist-more-interface-properties'
fb3c5bfd cmTargetPropertyComputer: whitelist custom properties
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1515
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/interface_library/whitelist.cmake | 10 |
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") |