MCPcopy Index your code
hub / github.com/Kitware/CMake / FindGeneratorTargetToUse

Method FindGeneratorTargetToUse

Source/cmLocalGenerator.cxx:2284–2306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2282}
2283
2284cmGeneratorTarget* cmLocalGenerator::FindGeneratorTargetToUse(
2285 std::string const& name) const
2286{
2287 auto imported = this->ImportedGeneratorTargets.find(name);
2288 if (imported != this->ImportedGeneratorTargets.end()) {
2289 return imported->second;
2290 }
2291
2292 // find local alias to imported target
2293 auto aliased = this->AliasTargets.find(name);
2294 if (aliased != this->AliasTargets.end()) {
2295 imported = this->ImportedGeneratorTargets.find(aliased->second);
2296 if (imported != this->ImportedGeneratorTargets.end()) {
2297 return imported->second;
2298 }
2299 }
2300
2301 if (cmGeneratorTarget* t = this->FindLocalNonAliasGeneratorTarget(name)) {
2302 return t;
2303 }
2304
2305 return this->GetGlobalGenerator()->FindGeneratorTarget(name);
2306}
2307
2308bool cmLocalGenerator::GetRealDependency(std::string const& inName,
2309 std::string const& config,

Callers 15

GetRealDependencyMethod · 0.95
CollectExportsMethod · 0.80
ComputeMethod · 0.80
IsUtilityMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80

Calls 5

GetGlobalGeneratorMethod · 0.95
FindGeneratorTargetMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by 1