summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftOnly
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-17 12:24:57 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-17 12:26:40 (GMT)
commit14a571244758ac6851c3a36e69f92388458c2ea0 (patch)
tree58dc1f0ad5cdae4b018e0729366f7161bb96f523 /Tests/SwiftOnly
parentd421274e3e11a0e6480358faa8a8e5cf48d7b3c2 (diff)
downloadCMake-14a571244758ac6851c3a36e69f92388458c2ea0.zip
CMake-14a571244758ac6851c3a36e69f92388458c2ea0.tar.gz
CMake-14a571244758ac6851c3a36e69f92388458c2ea0.tar.bz2
Swift: Fix regression in linking to interface libraries
Since commit 2026915f8f (Swift: Propagate Swift_MODULE_DIRECTORY as include directory, 2020-02-03, v3.18.0-rc1~547^2) we internally call `GetAllConfigCompileLanguages` on all directly linked targets without checking if they are interface libraries that don't compile at all. That violates an internal assumption and assertion. Fixes: #20977
Diffstat (limited to 'Tests/SwiftOnly')
-rw-r--r--Tests/SwiftOnly/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/SwiftOnly/CMakeLists.txt b/Tests/SwiftOnly/CMakeLists.txt
index e24279b..41d14ea 100644
--- a/Tests/SwiftOnly/CMakeLists.txt
+++ b/Tests/SwiftOnly/CMakeLists.txt
@@ -35,3 +35,4 @@ target_link_libraries(N PUBLIC
# Dummy to make sure generation works with such targets.
add_library(SwiftIface INTERFACE)
+target_link_libraries(SwiftOnly PRIVATE SwiftIface)