diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-03 22:42:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-03 22:42:55 (GMT) |
commit | fd0f29e6f4bb34cc10b41ba9df60be4948adef22 (patch) | |
tree | b8296ad93bf8d4d03db6cef417ea0de2250181b8 /Source/cmGlobalGenerator.cxx | |
parent | cecf8bf26a516354e1a937a8460940a54191e358 (diff) | |
download | CMake-fd0f29e6f4bb34cc10b41ba9df60be4948adef22.zip CMake-fd0f29e6f4bb34cc10b41ba9df60be4948adef22.tar.gz CMake-fd0f29e6f4bb34cc10b41ba9df60be4948adef22.tar.bz2 |
ENH: depends work between targets
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; +} + |