diff options
author | Brad King <brad.king@kitware.com> | 2022-01-05 17:35:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-29 11:48:12 (GMT) |
commit | 216aa149974a179d49094e53f553741e2c385920 (patch) | |
tree | 280845e93e8828d192b4b96a7e1dbe2d9488e765 /Source/cmGeneratorTarget.cxx | |
parent | 1bc98371d151d75b2321c3da46b14c26ef92a821 (diff) | |
download | CMake-216aa149974a179d49094e53f553741e2c385920.zip CMake-216aa149974a179d49094e53f553741e2c385920.tar.gz CMake-216aa149974a179d49094e53f553741e2c385920.tar.bz2 |
cmGeneratorTarget: Return early from ExpandLinkItems with no items
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index d1c5819..f8fa593 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -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 |