diff options
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 396d76e..17cad1a 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -798,3 +798,20 @@ void cmGlobalGenerator::FillProjectMap() } } + +cmTarget* cmGlobalGenerator::FindTarget(const char* name) +{ + for(unsigned int i = 0; i < m_LocalGenerators.size(); ++i) + { + cmTargets& tgts = m_LocalGenerators[i]->GetMakefile()->GetTargets(); + for(cmTargets::iterator l = tgts.begin(); l != tgts.end(); l++) + { + if(l->first == name) + { + return &l->second; + } + } + } + return 0; +} + |