summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-17 14:23:36 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-17 14:23:36 (GMT)
commit7aab792716bb647aac2b5802e6e21148471a0c79 (patch)
tree00660b368218b29711d55837f7883f80e1aa17fd /Tests
parent84e14a52ff694b5fc28511bae68dbb1e39dde246 (diff)
parent0e436c573c52add744f0ff7c8845be9c7ff381a0 (diff)
downloadCMake-7aab792716bb647aac2b5802e6e21148471a0c79.zip
CMake-7aab792716bb647aac2b5802e6e21148471a0c79.tar.gz
CMake-7aab792716bb647aac2b5802e6e21148471a0c79.tar.bz2
Merge branch 'export-target-lang-name' into release-3.16
Merge-request: !3927
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExportImport/Export/CMakeLists.txt5
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)