diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2017-12-14 19:26:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-01 14:24:25 (GMT) |
commit | 9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996 (patch) | |
tree | 9add3097e040194c966cc3b621514349863094fd /Source/cmGeneratorTarget.cxx | |
parent | dfb6e84082884f908ffad4594d2712d9edfd2cc0 (diff) | |
download | CMake-9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996.zip CMake-9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996.tar.gz CMake-9a7f039ee7d3f40d6d041fd0d1ef43f92faf8996.tar.bz2 |
objlib: Allow `OBJECT` libraries to link to `OBJECT` libraries.
Note: This still does not link the object-files of the `OBJECT` library
from the right-hand side of `target_link_libraries` to the target on the
left-hand side. (In this particular case of another `OBJECT` library on
the left-hand side this would not make any sense anyway. The target on
the left-hand side has no link-step.)
Issue: #14778
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index f6fd6d1..3aa57d2 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1054,9 +1054,6 @@ void cmGeneratorTarget::ComputeKindedSources(KindedSources& files, kind = SourceKindHeader; } else if (sf->GetPropertyAsBool("EXTERNAL_OBJECT")) { kind = SourceKindExternalObject; - if (this->GetType() == cmStateEnums::OBJECT_LIBRARY) { - badObjLib.push_back(sf); - } } else if (!sf->GetLanguage().empty()) { kind = SourceKindObjectSource; } else if (ext == "def") { |