diff options
author | Brad King <brad.king@kitware.com> | 2019-10-16 16:03:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-16 16:48:20 (GMT) |
commit | 0e436c573c52add744f0ff7c8845be9c7ff381a0 (patch) | |
tree | 1182550d8325eb9d822dd54763673e2d26e5737b /Tests/ExportImport | |
parent | 9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 (diff) | |
download | CMake-0e436c573c52add744f0ff7c8845be9c7ff381a0.zip CMake-0e436c573c52add744f0ff7c8845be9c7ff381a0.tar.gz CMake-0e436c573c52add744f0ff7c8845be9c7ff381a0.tar.bz2 |
install,export: Do not treat language names as target names
When generating `IMPORTED_LINK_INTERFACE_LANGUAGES`, do not treat the
entries as target names.
Fixes: #19846
Diffstat (limited to 'Tests/ExportImport')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index 5cf04e8..9d8a248 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -645,3 +645,8 @@ if(CMAKE_GENERATOR MATCHES "Make|Ninja") EXPORT RequiredExp DESTINATION lib) export(TARGETS testLinkDepends NAMESPACE bld_ APPEND FILE ExportBuildTree.cmake) endif() + +# Test the presence of targets named the same as languages. +# IMPORTED_LINK_INTERFACE_LANGUAGES entries should not be targets. +add_library(C INTERFACE) +add_library(CXX INTERFACE) |