diff options
author | Brad King <brad.king@kitware.com> | 2019-05-20 14:02:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-20 14:02:57 (GMT) |
commit | 9860b4c5e8756cb58c4cdfc27a14194f823aa0ab (patch) | |
tree | c3147291e886e3a7733d62c29e1847128d2962be /Tests | |
parent | 96cf96d4ebd27a1cc725c938899a23a2ddd25334 (diff) | |
parent | 73a829e0785a497069f55d8b2be2fb7b859a3e20 (diff) | |
download | CMake-9860b4c5e8756cb58c4cdfc27a14194f823aa0ab.zip CMake-9860b4c5e8756cb58c4cdfc27a14194f823aa0ab.tar.gz CMake-9860b4c5e8756cb58c4cdfc27a14194f823aa0ab.tar.bz2 |
Merge topic 'interface-library-export-properties'
73a829e078 InterfaceLibrary: Whitelist EXPORT_PROPERTIES property
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3336
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/ExportImport/Export/Interface/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/ExportImport/Import/Interface/CMakeLists.txt | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/Interface/CMakeLists.txt b/Tests/ExportImport/Export/Interface/CMakeLists.txt index fd55c42..22a4ef6 100644 --- a/Tests/ExportImport/Export/Interface/CMakeLists.txt +++ b/Tests/ExportImport/Export/Interface/CMakeLists.txt @@ -41,6 +41,8 @@ install(FILES add_library(cmakeonly INTERFACE) set_property(TARGET cmakeonly PROPERTY INTERFACE_COMPILE_DEFINITIONS [[DEF="\"\$\B"]]) +set_property(TARGET cmakeonly PROPERTY custom_property CustomPropertyValue) +set_property(TARGET cmakeonly PROPERTY EXPORT_PROPERTIES custom_property) install(TARGETS headeronly sharediface use_auto_type use_c_restrict source_target cmakeonly diff --git a/Tests/ExportImport/Import/Interface/CMakeLists.txt b/Tests/ExportImport/Import/Interface/CMakeLists.txt index c850508..a07a5b3 100644 --- a/Tests/ExportImport/Import/Interface/CMakeLists.txt +++ b/Tests/ExportImport/Import/Interface/CMakeLists.txt @@ -109,4 +109,12 @@ foreach(ns exp bld) "not\n" " " [[DEF="\"\$\B"]] "\n") endif() + get_property(custom TARGET ${ns}::cmakeonly PROPERTY custom_property) + if(NOT custom STREQUAL "CustomPropertyValue") + message(SEND_ERROR + "${ns}::cmakeonly property custom_property is:\n" + " ${custom}\n" + "not\n" + " CustomPropertyValue\n") + endif() endforeach() |