summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-24 17:38:05 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-13 15:53:00 (GMT)
commitd9e4b474320a68b51ca3aa4a91ac0671ffc3981f (patch)
tree1528ab3136f88815a834421126b42dc134b0a105 /Source/cmGeneratorTarget.cxx
parentff97944806d2d49ced0a11447659f7a6b2036e26 (diff)
downloadCMake-d9e4b474320a68b51ca3aa4a91ac0671ffc3981f.zip
CMake-d9e4b474320a68b51ca3aa4a91ac0671ffc3981f.tar.gz
CMake-d9e4b474320a68b51ca3aa4a91ac0671ffc3981f.tar.bz2
cmGeneratorTarget: Clarify logic recognizing explicit link interface
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index c021e0f..17237bb 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -6916,20 +6916,20 @@ void cmGeneratorTarget::ComputeLinkInterfaceLibraries(
return;
}
iface.Exists = true;
+
+ // If CMP0022 is NEW then the plain tll signature sets the
+ // INTERFACE_LINK_LIBRARIES property. Even if the project
+ // clears it, the link interface is still explicit.
iface.Explicit = cmp0022NEW || explicitLibraries;
if (explicitLibraries) {
// The interface libraries have been explicitly set.
this->ExpandLinkItems(linkIfaceProp, *explicitLibraries, config,
headTarget, usage_requirements_only, iface);
- return;
}
- // If CMP0022 is NEW then the plain tll signature sets the
- // INTERFACE_LINK_LIBRARIES, so if we get here then the project
- // cleared the property explicitly and we should not fall back
- // to the link implementation.
- if (cmp0022NEW) {
+ // If the link interface is explicit, do not fall back to the link impl.
+ if (iface.Explicit) {
return;
}