summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-11-18 04:04:35 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-23 19:26:31 (GMT)
commit1175f1c874a7cd34d643902bc428df92bce3471a (patch)
tree58011c63b67ff637e27fe212e1447a9116f0288c /Source/cmComputeLinkDepends.cxx
parentd2fa56772f290c61925a70161c77be5f4334fd77 (diff)
downloadCMake-1175f1c874a7cd34d643902bc428df92bce3471a.zip
CMake-1175f1c874a7cd34d643902bc428df92bce3471a.tar.gz
CMake-1175f1c874a7cd34d643902bc428df92bce3471a.tar.bz2
LinkItem: track `cmSourceFile` instances for external objects
The target may be required in order to provide Fortran modules, so track the source file so that the target may be looked up when needed.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index 1b1f640..320c57c 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -515,6 +515,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.ObjectSource = item.ObjectSource;
// Record explicitly linked object files separately.
this->ObjectEntries.emplace_back(index);