1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

cmGeneratorTarget: Give temporary link impl item an explicit name

This commit is contained in:
Brad King
2021-05-26 10:43:47 -04:00
parent ddffbb8adb
commit 96809a8541

View File

@@ -7490,8 +7490,8 @@ void cmGeneratorTarget::ComputeLinkImplementationLibraries(
}
// The entry is meant for this configuration.
impl.Libraries.emplace_back(this->ResolveLinkItem(name, *btIt, lg),
evaluated != *le);
cmLinkItem item = this->ResolveLinkItem(name, *btIt, lg);
impl.Libraries.emplace_back(std::move(item), evaluated != *le);
}
std::set<std::string> const& seenProps = cge->GetSeenTargetProperties();