diff options
author | Brad King <brad.king@kitware.com> | 2020-07-20 13:55:53 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-07-20 09:56:06 -0400 |
commit | 61b0d2c95c9010d57ba6e71a706f441d6b372b6e (patch) | |
tree | 288d8317ba49d100ffbb479c57c48ff8d61b502c /Source | |
parent | 290a68b94ce43b44eb84190ec2140d1710718836 (diff) | |
parent | 14a571244758ac6851c3a36e69f92388458c2ea0 (diff) | |
download | cmake-61b0d2c95c9010d57ba6e71a706f441d6b372b6e.tar.gz |
Merge topic 'swift-link-iface' into release-3.18
14a5712447 Swift: Fix regression in linking to interface libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5027
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index f2011ee665..c7baf2b713 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1309,6 +1309,9 @@ void AddSwiftImplicitIncludeDirectories( for (const cmLinkImplItem& library : libraries->Libraries) { if (const cmGeneratorTarget* dependency = library.Target) { + if (dependency->GetType() == cmStateEnums::INTERFACE_LIBRARY) { + continue; + } if (cm::contains(dependency->GetAllConfigCompileLanguages(), "Swift")) { EvaluatedTargetPropertyEntry entry{ library, library.Backtrace }; |