summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-14 16:17:52 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-14 20:40:29 (GMT)
commit377b78aef91576a1185b7a1742af9305986c435f (patch)
tree622191ee665333df31637f1a71b3ee760e4af31e
parentbaec1dac9bafd003879e40b7352ac2cfba0e25b0 (diff)
downloadCMake-377b78aef91576a1185b7a1742af9305986c435f.zip
CMake-377b78aef91576a1185b7a1742af9305986c435f.tar.gz
CMake-377b78aef91576a1185b7a1742af9305986c435f.tar.bz2
cmComputeLinkInformation: Simplify recording OBJECT libraries as link items
Simplify commit 2c7acd34e2 (cmComputeLinkInformation: add `OBJECT` libraries as link items, 2023-07-24, v3.28.0-rc1~279^2) using the existing local variables.
-rw-r--r--Source/cmComputeLinkInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index bd7ebed..1f1c2e2 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1162,7 +1162,7 @@ void cmComputeLinkInformation::AddItem(LinkEntry const& entry)
this->AddItem(BT<std::string>(libName, item.Backtrace));
}
} else if (tgt->GetType() == cmStateEnums::OBJECT_LIBRARY) {
- this->Items.emplace_back(entry.Item, ItemIsPath::No, entry.Target);
+ this->Items.emplace_back(item, ItemIsPath::No, tgt);
} else if (this->GlobalGenerator->IsXcode() &&
!tgt->GetImportedXcFrameworkPath(config).empty()) {
this->Items.emplace_back(