cmMakefile: Move the lexical scope.
This commit is contained in:
parent
92cecd9369
commit
dd7e42758d
@ -645,6 +645,8 @@ bool cmMakefile::ReadListFile(const char* filename)
|
|||||||
void cmMakefile::ReadListFile(cmListFile const& listFile,
|
void cmMakefile::ReadListFile(cmListFile const& listFile,
|
||||||
std::string const& filenametoread)
|
std::string const& filenametoread)
|
||||||
{
|
{
|
||||||
|
LexicalPushPop lexScope(this);
|
||||||
|
|
||||||
// add this list file to the list of dependencies
|
// add this list file to the list of dependencies
|
||||||
this->ListFiles.push_back(filenametoread);
|
this->ListFiles.push_back(filenametoread);
|
||||||
|
|
||||||
@ -661,9 +663,6 @@ void cmMakefile::ReadListFile(cmListFile const& listFile,
|
|||||||
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
|
||||||
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
||||||
|
|
||||||
// Enforce balanced blocks (if/endif, function/endfunction, etc.).
|
|
||||||
LexicalPushPop lexScope(this);
|
|
||||||
|
|
||||||
// Run the parsed commands.
|
// Run the parsed commands.
|
||||||
const size_t numberFunctions = listFile.Functions.size();
|
const size_t numberFunctions = listFile.Functions.size();
|
||||||
for(size_t i =0; i < numberFunctions; ++i)
|
for(size_t i =0; i < numberFunctions; ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user