summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-26 14:44:41 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-28 18:27:38 (GMT)
commit7f506b95a78a3238d3481539810441ca955a0901 (patch)
treedffb4bf2d614a866cebd1f1af8dfbd3ef61aff19 /Source/cmGeneratorTarget.h
parent96809a8541513c7adb52a65766154d417281227e (diff)
downloadCMake-7f506b95a78a3238d3481539810441ca955a0901.zip
CMake-7f506b95a78a3238d3481539810441ca955a0901.tar.gz
CMake-7f506b95a78a3238d3481539810441ca955a0901.tar.bz2
cmGeneratorTarget: Refactor link item lookup
Look up items individually so the call sites can do something with the result besides appending to a vector.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 2935e0b..dbc47b8 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -1039,9 +1039,8 @@ private:
bool& hadHeadSensitiveCondition,
bool& hadContextSensitiveCondition,
bool& hadLinkLanguageSensitiveCondition) const;
- void LookupLinkItems(std::vector<std::string> const& names,
- cmListFileBacktrace const& bt,
- std::vector<cmLinkItem>& items) const;
+ cm::optional<cmLinkItem> LookupLinkItem(std::string const& n,
+ cmListFileBacktrace const& bt) const;
std::vector<BT<std::string>> GetSourceFilePaths(
std::string const& config) const;