cmMakefile: Move check for unused variables.

This commit is contained in:
Stephen Kelly 2015-06-21 19:43:07 +02:00
parent fff3c6cd1c
commit d5aaa2b96f
1 changed files with 2 additions and 5 deletions

View File

@ -586,6 +586,8 @@ bool cmMakefile::ReadListFile(const char* listfile,
this->ReadListFileInternal(listFile, filenametoread.c_str(),
noPolicyScope);
this->CheckForUnusedVariables();
}
this->AddDefinition("CMAKE_PARENT_LIST_FILE", currentParentFile.c_str());
@ -596,11 +598,6 @@ bool cmMakefile::ReadListFile(const char* listfile,
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_FILE");
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
if (res)
{
this->CheckForUnusedVariables();
}
return res;
}