mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
cmGeneratorTarget: Return early from ExpandLinkItems with no items
This commit is contained in:
@@ -6666,6 +6666,9 @@ void cmGeneratorTarget::ExpandLinkItems(std::string const& prop,
|
|||||||
LinkInterfaceFor interfaceFor,
|
LinkInterfaceFor interfaceFor,
|
||||||
cmLinkInterface& iface) const
|
cmLinkInterface& iface) const
|
||||||
{
|
{
|
||||||
|
if (entries.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Keep this logic in sync with ComputeLinkImplementationLibraries.
|
// Keep this logic in sync with ComputeLinkImplementationLibraries.
|
||||||
cmGeneratorExpressionDAGChecker dagChecker(this, prop, nullptr, nullptr);
|
cmGeneratorExpressionDAGChecker dagChecker(this, prop, nullptr, nullptr);
|
||||||
// The $<LINK_ONLY> expression may be in a link interface to specify
|
// The $<LINK_ONLY> expression may be in a link interface to specify
|
||||||
|
|||||||
Reference in New Issue
Block a user