summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-02 18:50:43 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-02 18:50:57 (GMT)
commitd75cad01f0a43c55f999768fb63287fc247f9685 (patch)
treeda86ccf7b01031cd20649af1d103b27b2719334b /Source
parent4b2e1fc9eeeb0b0b686b2e38a2a29e49eedb45e5 (diff)
downloadCMake-d75cad01f0a43c55f999768fb63287fc247f9685.zip
CMake-d75cad01f0a43c55f999768fb63287fc247f9685.tar.gz
CMake-d75cad01f0a43c55f999768fb63287fc247f9685.tar.bz2
Fix rpath-link for shared lib with only private deps
Under CMP0022 NEW behavior, the link interface is explicit even if there are no public dependencies (`INTERFACE_LINK_LIBRARIES` is not set). Mark it as such to activate our tracking of private runtime dependencies of shared libraries for generation of `-rpath-link` flags. Fixes: #19556
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 747051d..d9e5e71 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -5660,7 +5660,7 @@ void cmGeneratorTarget::ComputeLinkInterfaceLibraries(
return;
}
iface.Exists = true;
- iface.Explicit = explicitLibraries != nullptr;
+ iface.Explicit = cmp0022NEW || explicitLibraries != nullptr;
if (explicitLibraries) {
// The interface libraries have been explicitly set.