summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 10:39:51 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-07 02:10:29 (GMT)
commit5f66900e71fdc33b40c46bf8a87b35d88d280769 (patch)
tree419e1fb8badf433119ca8caba9cc8c10a6507029 /Source/cmGlobalGenerator.cxx
parentc5b8841fd96727a290e148e8b5132f893f8b4d4e (diff)
downloadCMake-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.cxx14
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*