cmGeneratorTarget: Return early from ExpandLinkItems with no items

This commit is contained in:
Brad King 2022-01-05 12:35:49 -05:00
parent 1bc98371d1
commit 216aa14997

View File

@ -6666,6 +6666,9 @@ void cmGeneratorTarget::ExpandLinkItems(std::string const& prop,
LinkInterfaceFor interfaceFor,
cmLinkInterface& iface) const
{
if (entries.empty()) {
return;
}
// Keep this logic in sync with ComputeLinkImplementationLibraries.
cmGeneratorExpressionDAGChecker dagChecker(this, prop, nullptr, nullptr);
// The $<LINK_ONLY> expression may be in a link interface to specify