cmMakefile: Move the IncludeScope to where it is used.
This commit is contained in:
parent
7e3ac12df4
commit
276c62253e
|
@ -405,6 +405,26 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cmMakefile::ProcessBuildsystemFile(const char* filename)
|
||||||
|
{
|
||||||
|
this->AddDefinition("CMAKE_PARENT_LIST_FILE", filename);
|
||||||
|
std::string curSrc = this->GetCurrentSourceDirectory();
|
||||||
|
|
||||||
|
this->ListFileStack.push_back(filename);
|
||||||
|
|
||||||
|
cmListFile listFile;
|
||||||
|
if (!listFile.ParseFile(filename, curSrc == this->GetHomeDirectory(), this))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
this->PushPolicyBarrier();
|
||||||
|
this->ReadListFile(listFile, filename);
|
||||||
|
this->PopPolicyBarrier(!cmSystemTools::GetFatalErrorOccured());
|
||||||
|
this->EnforceDirectoryLevelRules();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
class cmMakefile::IncludeScope
|
class cmMakefile::IncludeScope
|
||||||
{
|
{
|
||||||
|
@ -532,26 +552,6 @@ void cmMakefile::IncludeScope::EnforceCMP0011()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmMakefile::ProcessBuildsystemFile(const char* filename)
|
|
||||||
{
|
|
||||||
this->AddDefinition("CMAKE_PARENT_LIST_FILE", filename);
|
|
||||||
std::string curSrc = this->GetCurrentSourceDirectory();
|
|
||||||
|
|
||||||
this->ListFileStack.push_back(filename);
|
|
||||||
|
|
||||||
cmListFile listFile;
|
|
||||||
if (!listFile.ParseFile(filename, curSrc == this->GetHomeDirectory(), this))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
this->PushPolicyBarrier();
|
|
||||||
this->ReadListFile(listFile, filename);
|
|
||||||
this->PopPolicyBarrier(!cmSystemTools::GetFatalErrorOccured());
|
|
||||||
this->EnforceDirectoryLevelRules();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool cmMakefile::ReadDependentFile(const char* filename, bool noPolicyScope)
|
bool cmMakefile::ReadDependentFile(const char* filename, bool noPolicyScope)
|
||||||
{
|
{
|
||||||
this->AddDefinition("CMAKE_PARENT_LIST_FILE",
|
this->AddDefinition("CMAKE_PARENT_LIST_FILE",
|
||||||
|
|
Loading…
Reference in New Issue