From d5aaa2b96f7d93aaa8e11e8d5e9cf0c2b1739290 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 21 Jun 2015 19:43:07 +0200 Subject: cmMakefile: Move check for unused variables. --- Source/cmMakefile.cxx | 7 ++----- 1 file 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; } -- cgit v0.12