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,
|
cmSystemTools::CollapseFullPath(filename,
|
||||||
this->GetCurrentSourceDirectory());
|
this->GetCurrentSourceDirectory());
|
||||||
|
|
||||||
|
IncludeScope incScope(this, noPolicyScope);
|
||||||
this->ListFileStack.push_back(filenametoread);
|
this->ListFileStack.push_back(filenametoread);
|
||||||
|
|
||||||
cmListFile listFile;
|
cmListFile listFile;
|
||||||
if (!listFile.ParseFile(filenametoread.c_str(), false, this))
|
if (!listFile.ParseFile(filenametoread.c_str(), false, this))
|
||||||
{
|
{
|
||||||
|
incScope.Quiet();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
IncludeScope incScope(this, noPolicyScope);
|
|
||||||
this->ReadListFile(listFile, filenametoread);
|
this->ReadListFile(listFile, filenametoread);
|
||||||
if(cmSystemTools::GetFatalErrorOccured())
|
if(cmSystemTools::GetFatalErrorOccured())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user