diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-02 10:39:51 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-07 02:10:29 (GMT) |
commit | 5f66900e71fdc33b40c46bf8a87b35d88d280769 (patch) | |
tree | 419e1fb8badf433119ca8caba9cc8c10a6507029 /Source/cmGlobalGenerator.cxx | |
parent | c5b8841fd96727a290e148e8b5132f893f8b4d4e (diff) | |
download | CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.zip CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.gz CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.bz2 |
cmGlobalGenerator: Port Find API to cmMakefile.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 8645317..1e2d091 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -2160,6 +2160,20 @@ void cmGlobalGenerator::FillLocalGeneratorToTargetMap() } } +cmMakefile* +cmGlobalGenerator::FindMakefile(const std::string& start_dir) const +{ + for(std::vector<cmMakefile*>::const_iterator it = + this->Makefiles.begin(); it != this->Makefiles.end(); ++it) + { + std::string sd = (*it)->GetCurrentSourceDirectory(); + if (sd == start_dir) + { + return *it; + } + } + return 0; +} ///! Find a local generator by its startdirectory cmLocalGenerator* |