cmGeneratorTarget: Factor target name resolution out of link item resolution

This commit is contained in:
Brad King
2018-09-10 10:11:57 -04:00
parent 2f708f5d65
commit 18441a6269
2 changed files with 31 additions and 10 deletions

View File

@@ -357,6 +357,13 @@ public:
cmOptionalLinkImplementation& impl,
const cmGeneratorTarget* head) const;
struct TargetOrString
{
std::string String;
cmGeneratorTarget* Target = nullptr;
};
TargetOrString ResolveTargetReference(std::string const& name) const;
cmLinkItem ResolveLinkItem(std::string const& name) const;
// Compute the set of languages compiled by the target. This is