Commit fff3c6cd authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmMakefile: Move a container population.

parent a6e661b8
...@@ -581,6 +581,9 @@ bool cmMakefile::ReadListFile(const char* listfile, ...@@ -581,6 +581,9 @@ bool cmMakefile::ReadListFile(const char* listfile,
requireProjectCommand, this); requireProjectCommand, this);
if (res) if (res)
{ {
// add this list file to the list of dependencies
this->ListFiles.push_back(filenametoread);
this->ReadListFileInternal(listFile, filenametoread.c_str(), this->ReadListFileInternal(listFile, filenametoread.c_str(),
noPolicyScope); noPolicyScope);
} }
...@@ -605,11 +608,7 @@ void cmMakefile::ReadListFileInternal(cmListFile const& listFile, ...@@ -605,11 +608,7 @@ void cmMakefile::ReadListFileInternal(cmListFile const& listFile,
const char* filenametoread, const char* filenametoread,
bool noPolicyScope) bool noPolicyScope)
{ {
// add this list file to the list of dependencies
this->ListFiles.push_back( filenametoread);
// Enforce balanced blocks (if/endif, function/endfunction, etc.). // Enforce balanced blocks (if/endif, function/endfunction, etc.).
{
LexicalPushPop lexScope(this); LexicalPushPop lexScope(this);
IncludeScope incScope(this, filenametoread, noPolicyScope); IncludeScope incScope(this, filenametoread, noPolicyScope);
...@@ -632,7 +631,6 @@ void cmMakefile::ReadListFileInternal(cmListFile const& listFile, ...@@ -632,7 +631,6 @@ void cmMakefile::ReadListFileInternal(cmListFile const& listFile,
break; break;
} }
} }
}
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment