Browse Source

cmComputeLinkDepends: also copy the target from object link items

Ben Boeckel 2 years ago
parent
commit
035302b7e3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmComputeLinkDepends.cxx

+ 1 - 0
Source/cmComputeLinkDepends.cxx

@@ -512,6 +512,7 @@ void cmComputeLinkDepends::AddLinkObject(cmLinkItem const& item)
   LinkEntry& entry = this->EntryList[index];
   entry.Item = BT<std::string>(item.AsStr(), item.Backtrace);
   entry.Kind = LinkEntry::Object;
+  entry.Target = item.Target;
 
   // Record explicitly linked object files separately.
   this->ObjectEntries.emplace_back(index);