| 2282 | } |
| 2283 | |
| 2284 | cmGeneratorTarget* 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 | |
| 2308 | bool cmLocalGenerator::GetRealDependency(std::string const& inName, |
| 2309 | std::string const& config, |