summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-12-12 13:32:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-12-12 13:32:17 (GMT)
commit6a6900f61666977948bffa1409d4633799de323c (patch)
treea0e3ecc319274205b436e5423dfcda850532e5ef /Source
parent71e74b4ae453473d597ce5a53e2e8e7641dc832a (diff)
parentbab24e782c1bf56ef7263e91e5cf78879699a036 (diff)
downloadCMake-6a6900f61666977948bffa1409d4633799de323c.zip
CMake-6a6900f61666977948bffa1409d4633799de323c.tar.gz
CMake-6a6900f61666977948bffa1409d4633799de323c.tar.bz2
Merge topic 'object-library-link'
bab24e782c target_link_libraries: Propagate dependencies of object libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2725
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx
index 66cc6ee..eebf7a0 100644
--- a/Source/cmTargetLinkLibrariesCommand.cxx
+++ b/Source/cmTargetLinkLibrariesCommand.cxx
@@ -451,7 +451,8 @@ bool cmTargetLinkLibrariesCommand::HandleLibrary(const std::string& lib,
// STATIC library.)
if (this->CurrentProcessingState == ProcessingKeywordPrivateInterface ||
this->CurrentProcessingState == ProcessingPlainPrivateInterface) {
- if (this->Target->GetType() == cmStateEnums::STATIC_LIBRARY) {
+ if (this->Target->GetType() == cmStateEnums::STATIC_LIBRARY ||
+ this->Target->GetType() == cmStateEnums::OBJECT_LIBRARY) {
std::string configLib =
this->Target->GetDebugGeneratorExpressions(libRef, llt);
if (cmGeneratorExpression::IsValidTargetName(libRef) ||