summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-01 15:50:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-01 15:50:33 (GMT)
commit87120b9c2a1aae4671b674ad3e06cd9666d91752 (patch)
tree0a58305a37a2d036933c029d8bc960832611a9e2 /Source/cmTargetLinkLibrariesCommand.cxx
parentf4e2face6f867601f8a73754d627a81b26cdfd60 (diff)
parent3d3713121b55320ce8031b838ba5ca5b844f2975 (diff)
downloadCMake-87120b9c2a1aae4671b674ad3e06cd9666d91752.zip
CMake-87120b9c2a1aae4671b674ad3e06cd9666d91752.tar.gz
CMake-87120b9c2a1aae4671b674ad3e06cd9666d91752.tar.bz2
Merge topic 'out-of-dir-linking-private-deps'
3d3713121b target_link_libraries: Fix static library private deps in other dirs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3276
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx
index 5c7b95c..3883b52 100644
--- a/Source/cmTargetLinkLibrariesCommand.cxx
+++ b/Source/cmTargetLinkLibrariesCommand.cxx
@@ -456,8 +456,8 @@ bool cmTargetLinkLibrariesCommand::HandleLibrary(const std::string& lib,
this->Target->GetType() == cmStateEnums::OBJECT_LIBRARY) {
std::string configLib =
this->Target->GetDebugGeneratorExpressions(libRef, llt);
- if (cmGeneratorExpression::IsValidTargetName(libRef) ||
- cmGeneratorExpression::Find(libRef) != std::string::npos) {
+ if (cmGeneratorExpression::IsValidTargetName(lib) ||
+ cmGeneratorExpression::Find(lib) != std::string::npos) {
configLib = "$<LINK_ONLY:" + configLib + ">";
}
this->Target->AppendProperty("INTERFACE_LINK_LIBRARIES",