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

cmMakefile: Move check for unused variables.

parent fff3c6cd
......@@ -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;
}
......
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