cmLocalGenerator: Inline ReadListFile method.
This commit is contained in:
parent
ad70681909
commit
4080ca497e
|
@ -115,8 +115,10 @@ void cmLocalGenerator::Configure()
|
||||||
filesDir += cmake::GetCMakeFilesDirectory();
|
filesDir += cmake::GetCMakeFilesDirectory();
|
||||||
cmSystemTools::MakeDirectory(filesDir.c_str());
|
cmSystemTools::MakeDirectory(filesDir.c_str());
|
||||||
|
|
||||||
// find & read the list file
|
std::string currentStart = this->StateSnapshot.GetCurrentSourceDirectory();
|
||||||
this->ReadInputFile();
|
currentStart += "/CMakeLists.txt";
|
||||||
|
assert(cmSystemTools::FileExists(currentStart.c_str(), true));
|
||||||
|
this->Makefile->ProcessBuildsystemFile(currentStart.c_str());
|
||||||
|
|
||||||
// at the end of the ReadListFile handle any old style subdirs
|
// at the end of the ReadListFile handle any old style subdirs
|
||||||
// first get all the subdirectories
|
// first get all the subdirectories
|
||||||
|
@ -183,16 +185,6 @@ void cmLocalGenerator::ComputeObjectMaxPath()
|
||||||
this->ObjectMaxPathViolations.clear();
|
this->ObjectMaxPathViolations.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
void cmLocalGenerator::ReadInputFile()
|
|
||||||
{
|
|
||||||
// Look for the CMakeLists.txt file.
|
|
||||||
std::string currentStart = this->StateSnapshot.GetCurrentSourceDirectory();
|
|
||||||
currentStart += "/CMakeLists.txt";
|
|
||||||
assert(cmSystemTools::FileExists(currentStart.c_str(), true));
|
|
||||||
this->Makefile->ProcessBuildsystemFile(currentStart.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
void cmLocalGenerator::ConfigureFinalPass()
|
void cmLocalGenerator::ConfigureFinalPass()
|
||||||
{
|
{
|
||||||
this->Makefile->ConfigureFinalPass();
|
this->Makefile->ConfigureFinalPass();
|
||||||
|
|
|
@ -447,9 +447,6 @@ protected:
|
||||||
definition. Issues a warning. */
|
definition. Issues a warning. */
|
||||||
virtual bool CheckDefinition(std::string const& define) const;
|
virtual bool CheckDefinition(std::string const& define) const;
|
||||||
|
|
||||||
/** Read the input CMakeLists.txt file. */
|
|
||||||
void ReadInputFile();
|
|
||||||
|
|
||||||
cmMakefile *Makefile;
|
cmMakefile *Makefile;
|
||||||
cmState::Snapshot StateSnapshot;
|
cmState::Snapshot StateSnapshot;
|
||||||
cmGlobalGenerator *GlobalGenerator;
|
cmGlobalGenerator *GlobalGenerator;
|
||||||
|
|
Loading…
Reference in New Issue