summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-11-20 17:44:34 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-29 16:26:52 (GMT)
commit9798482a8c2d1838bbdbed790074e4d231be9a17 (patch)
treeb331e529d4d61fa92e30749c34185536814db1f2 /Source/cmGeneratorTarget.h
parent5fbc24a31da4cbc42bb08087a64e85a3f483bd98 (diff)
downloadCMake-9798482a8c2d1838bbdbed790074e4d231be9a17.zip
CMake-9798482a8c2d1838bbdbed790074e4d231be9a17.tar.gz
CMake-9798482a8c2d1838bbdbed790074e4d231be9a17.tar.bz2
LINK_LIBRARY-genex: correct behavior for INTERFACE_LINK_LIBRARIES_DIRECT
Fixes: #25416
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index d1dbc62..e41edcf 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -449,9 +449,12 @@ public:
TargetOrString ResolveTargetReference(std::string const& name,
cmLocalGenerator const* lg) const;
- cmLinkItem ResolveLinkItem(BT<std::string> const& name) const;
- cmLinkItem ResolveLinkItem(BT<std::string> const& name,
- cmLocalGenerator const* lg) const;
+ cmLinkItem ResolveLinkItem(
+ BT<std::string> const& name,
+ std::string const& linkFeature = cmLinkItem::DEFAULT) const;
+ cmLinkItem ResolveLinkItem(
+ BT<std::string> const& name, cmLocalGenerator const* lg,
+ std::string const& linkFeature = cmLinkItem::DEFAULT) const;
bool HasPackageReferences() const;
std::vector<std::string> GetPackageReferences() const;
@@ -1182,6 +1185,7 @@ private:
};
cm::optional<cmLinkItem> LookupLinkItem(std::string const& n,
cmListFileBacktrace const& bt,
+ std::string const& linkFeature,
LookupLinkItemScope* scope,
LookupSelf lookupSelf) const;