cmMakefile: Move IncludeScope.
This commit is contained in:
parent
3404f8a081
commit
c10ab01434
|
@ -561,14 +561,15 @@ bool cmMakefile::ReadDependentFile(const char* filename, bool noPolicyScope)
|
|||
cmSystemTools::CollapseFullPath(filename,
|
||||
this->GetCurrentSourceDirectory());
|
||||
|
||||
IncludeScope incScope(this, noPolicyScope);
|
||||
this->ListFileStack.push_back(filenametoread);
|
||||
|
||||
cmListFile listFile;
|
||||
if (!listFile.ParseFile(filenametoread.c_str(), false, this))
|
||||
{
|
||||
incScope.Quiet();
|
||||
return false;
|
||||
}
|
||||
IncludeScope incScope(this, noPolicyScope);
|
||||
this->ReadListFile(listFile, filenametoread);
|
||||
if(cmSystemTools::GetFatalErrorOccured())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue