summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/interface_library/whitelist.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-12 14:20:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-12 14:20:20 (GMT)
commit4adc0b7c758ed98776bec63d21bb2037b0f28e2d (patch)
tree9bd43553c8d780641c16f5f285f90f8bf9c5130c /Tests/RunCMake/interface_library/whitelist.cmake
parentdb6fdfdb053a372382ff8eadad9bfa47c1a3b4bc (diff)
parenta40f9083dd17d1cccf89ccdf290c3f494cab3aac (diff)
downloadCMake-4adc0b7c758ed98776bec63d21bb2037b0f28e2d.zip
CMake-4adc0b7c758ed98776bec63d21bb2037b0f28e2d.tar.gz
CMake-4adc0b7c758ed98776bec63d21bb2037b0f28e2d.tar.bz2
Merge topic 'iface-headers'
a40f9083dd INTERFACE Target: allow (PUBLIC/PRIVATE)_HEADER properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3181
Diffstat (limited to 'Tests/RunCMake/interface_library/whitelist.cmake')
-rw-r--r--Tests/RunCMake/interface_library/whitelist.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/interface_library/whitelist.cmake b/Tests/RunCMake/interface_library/whitelist.cmake
index bf64f01..0db6375 100644
--- a/Tests/RunCMake/interface_library/whitelist.cmake
+++ b/Tests/RunCMake/interface_library/whitelist.cmake
@@ -14,3 +14,12 @@ get_target_property(outname iface "_custom_property")
set_property(TARGET iface PROPERTY "custom_property" output)
set_property(TARGET iface APPEND PROPERTY "custom_property" append)
get_target_property(outname iface "custom_property")
+
+# PUBLIC_HEADER / PRIVATE_HEADER properties are allowed
+set_property(TARGET iface PROPERTY PUBLIC_HEADER foo.h)
+set_property(TARGET iface APPEND PROPERTY PUBLIC_HEADER bar.h)
+get_target_property(outname iface PUBLIC_HEADER)
+
+set_property(TARGET iface PROPERTY PRIVATE_HEADER foo.h)
+set_property(TARGET iface APPEND PROPERTY PRIVATE_HEADER bar.h)
+get_target_property(outname iface PRIVATE_HEADER)