cmLinkItem: Remove redundant cmLinkImplItem class

The cmLinkImplItem class used to contain some additional members
to support the CMP0027 policy. Since the CMP0027 policy and those
associated members were removed, the cmLinkImplItem class has been
a plain wrapper around cmLinkItem with no additional members.
It is no longer needed and cmLinkItem can be used directly wherever
cmLinkImplItem was used previously.
This commit is contained in:
Craig Scott
2025-10-01 11:52:00 +10:00
committed by Brad King
parent 0181fb4cc5
commit 1b764b6816
13 changed files with 52 additions and 87 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ void cmLinkLineDeviceComputer::ComputeLinkLibraries(
cli.GetTarget()->GetLinkImplementation(cli.GetConfig(),
cmGeneratorTarget::UseTo::Link);
for (cmLinkImplItem const& iter : linkImpl->Libraries) {
for (cmLinkItem const& iter : linkImpl->Libraries) {
if (iter.Target &&
iter.Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
std::string libPath = iter.Target->GetLocation(cli.GetConfig());