diff options
author | Brad King <brad.king@kitware.com> | 2019-04-30 17:55:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-30 17:55:48 (GMT) |
commit | c9469c78a5545b5a04ecf0f27b50500140aca5e9 (patch) | |
tree | 66a11ea1a6fc46fa1c03d6a96a32e39176fe0d90 /Source/cmTargetLinkLibrariesCommand.cxx | |
parent | 0c2469e3fbf359934f266aa5dbcc69d78a618bab (diff) | |
parent | 3d3713121b55320ce8031b838ba5ca5b844f2975 (diff) | |
download | CMake-c9469c78a5545b5a04ecf0f27b50500140aca5e9.zip CMake-c9469c78a5545b5a04ecf0f27b50500140aca5e9.tar.gz CMake-c9469c78a5545b5a04ecf0f27b50500140aca5e9.tar.bz2 |
Merge branch 'out-of-dir-linking-private-deps' into release-3.13
Merge-request: !3276
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx index ad33f98..ded6831 100644 --- a/Source/cmTargetLinkLibrariesCommand.cxx +++ b/Source/cmTargetLinkLibrariesCommand.cxx @@ -452,8 +452,8 @@ bool cmTargetLinkLibrariesCommand::HandleLibrary(const std::string& lib, if (this->Target->GetType() == cmStateEnums::STATIC_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", |