From 377b78aef91576a1185b7a1742af9305986c435f Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 14 Nov 2023 11:17:52 -0500 Subject: 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. --- Source/cmComputeLinkInformation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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( -- cgit v0.12