diff options
author | Brad King <brad.king@kitware.com> | 2020-07-20 13:55:53 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-07-20 13:56:07 (GMT) |
commit | beb78ada5e51470a1d0a5180302f064b1e72af26 (patch) | |
tree | 99010eebe4096ed746ad1dd908630fa5d27b9c97 /Source/cmGeneratorTarget.cxx | |
parent | d66638400f3507aa747047b82e70080c219b0d48 (diff) | |
parent | 14a571244758ac6851c3a36e69f92388458c2ea0 (diff) | |
download | CMake-beb78ada5e51470a1d0a5180302f064b1e72af26.zip CMake-beb78ada5e51470a1d0a5180302f064b1e72af26.tar.gz CMake-beb78ada5e51470a1d0a5180302f064b1e72af26.tar.bz2 |
Merge topic 'swift-link-iface'
14a5712447 Swift: Fix regression in linking to interface libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5027
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-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 72dc80b..4fe68d2 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1365,6 +1365,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 }; |