cmMakefile: Move IncludeScope.

This commit is contained in:
Stephen Kelly 2015-06-21 20:08:30 +02:00
parent 3404f8a081
commit c10ab01434
1 changed files with 2 additions and 1 deletions

View File

@ -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())
{