diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-22 16:41:29 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-22 16:46:15 (GMT) |
commit | 62be1f78aea0f38e245e7f8b748a24f95eadb37a (patch) | |
tree | 1a673038783e8c8f9fc150ddf3ca87f0f10f8ab3 /Source/cmMakefile.cxx | |
parent | c6e7fabc0f3563a258b8b3e10757e1916d680db0 (diff) | |
download | CMake-62be1f78aea0f38e245e7f8b748a24f95eadb37a.zip CMake-62be1f78aea0f38e245e7f8b748a24f95eadb37a.tar.gz CMake-62be1f78aea0f38e245e7f8b748a24f95eadb37a.tar.bz2 |
Initialize the usage stack earlier
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 5aa643c..70d3495 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -54,6 +54,7 @@ cmMakefile::cmMakefile(): Internal(new Internals) const std::set<cmStdString> globalKeys = defs.LocalKeys(); this->Internal->VarStack.push(defs); this->Internal->VarInitStack.push(globalKeys); + this->Internal->VarUsageStack.push(globalKeys); // Setup the default include file regular expression (match everything). this->IncludeFileRegularExpression = "^.*$"; @@ -775,20 +776,7 @@ void cmMakefile::SetLocalGenerator(cmLocalGenerator* lg) this->AddSourceGroup("Resources", "\\.plist$"); #endif - if (this->Internal->VarUsageStack.empty()) - { - const cmDefinitions& defs = cmDefinitions(); - const std::set<cmStdString> globalKeys = defs.LocalKeys(); - this->WarnUnused = this->GetCMakeInstance()->GetWarnUnused(); - if (this->WarnUnused) - { - this->Internal->VarUsageStack.push(globalKeys); - } - else - { - this->Internal->VarUsageStack.push(std::set<cmStdString>()); - } - } + this->WarnUnused = this->GetCMakeInstance()->GetWarnUnused(); this->CheckSystemVars = this->GetCMakeInstance()->GetCheckSystemVars(); } |