diff options
author | Brad King <brad.king@kitware.com> | 2019-05-17 13:14:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-17 13:20:04 (GMT) |
commit | 73a829e0785a497069f55d8b2be2fb7b859a3e20 (patch) | |
tree | 0b35fd1a09a4ade6e87da004bd4b01ddd9dc8be9 /Tests/ExportImport | |
parent | 736f9d184da2109b009078e3184e996883bd7554 (diff) | |
download | CMake-73a829e0785a497069f55d8b2be2fb7b859a3e20.zip CMake-73a829e0785a497069f55d8b2be2fb7b859a3e20.tar.gz CMake-73a829e0785a497069f55d8b2be2fb7b859a3e20.tar.bz2 |
InterfaceLibrary: Whitelist EXPORT_PROPERTIES property
Fixes: #19261
Diffstat (limited to 'Tests/ExportImport')
-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() |