summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-21 17:43:07 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-21 18:10:47 (GMT)
commitd5aaa2b96f7d93aaa8e11e8d5e9cf0c2b1739290 (patch)
tree21cb2e0fcfdc3cb8c2529ee1ac4d2febbf64d09f /Source
parentfff3c6cd1c49ba1aa8a256e26294db65710c9d18 (diff)
downloadCMake-d5aaa2b96f7d93aaa8e11e8d5e9cf0c2b1739290.zip
CMake-d5aaa2b96f7d93aaa8e11e8d5e9cf0c2b1739290.tar.gz
CMake-d5aaa2b96f7d93aaa8e11e8d5e9cf0c2b1739290.tar.bz2
cmMakefile: Move check for unused variables.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx7
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;
}