1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

cmComputeLinkDepends: also copy the target from object link items

This commit is contained in:
Ben Boeckel
2023-10-27 12:45:41 -04:00
parent 861876b936
commit 035302b7e3

View File

@@ -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);