diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 3c32362..6b3c7df 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -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; } |