cmComputeLinkInformation: skip over linking to items for object purposes

If a name is only found because it is a link entry of kind `Object`, do
not add anything to the link line.
This commit is contained in:
Ben Boeckel 2023-10-27 13:24:42 -04:00
parent 035302b7e3
commit 64d9240564

View File

@ -1220,7 +1220,7 @@ void cmComputeLinkInformation::AddItem(LinkEntry const& entry)
this->AddFullItem(entry);
this->AddLibraryRuntimeInfo(item.Value);
}
} else {
} else if (entry.Kind != cmComputeLinkDepends::LinkEntry::Object) {
// This is a library or option specified by the user.
this->AddUserItem(entry, true);
}