diff options
author | Brad King <brad.king@kitware.com> | 2019-08-02 18:50:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-02 18:50:57 (GMT) |
commit | d75cad01f0a43c55f999768fb63287fc247f9685 (patch) | |
tree | da86ccf7b01031cd20649af1d103b27b2719334b /Source/cmGeneratorTarget.cxx | |
parent | 4b2e1fc9eeeb0b0b686b2e38a2a29e49eedb45e5 (diff) | |
download | CMake-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/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 2 |
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. |