cmMakefile: Move check for unused variables.
This commit is contained in:
parent
fff3c6cd1c
commit
d5aaa2b96f
|
@ -586,6 +586,8 @@ bool cmMakefile::ReadListFile(const char* listfile,
|
||||||
|
|
||||||
this->ReadListFileInternal(listFile, filenametoread.c_str(),
|
this->ReadListFileInternal(listFile, filenametoread.c_str(),
|
||||||
noPolicyScope);
|
noPolicyScope);
|
||||||
|
|
||||||
|
this->CheckForUnusedVariables();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->AddDefinition("CMAKE_PARENT_LIST_FILE", currentParentFile.c_str());
|
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_FILE");
|
||||||
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
this->MarkVariableAsUsed("CMAKE_CURRENT_LIST_DIR");
|
||||||
|
|
||||||
if (res)
|
|
||||||
{
|
|
||||||
this->CheckForUnusedVariables();
|
|
||||||
}
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue