summaryrefslogtreecommitdiffstats
path: root/Source/cmMarkAsAdvancedCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-10 13:03:41 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-10 13:36:57 (GMT)
commite0f740f1b1708ac4ec43a57b8f1cbc549afe5df3 (patch)
treedeb78837ea052a24523fffdc8affd2c9a6899636 /Source/cmMarkAsAdvancedCommand.cxx
parent2afadb0d5ad21fbbcff961562ec441eb4ac001ab (diff)
downloadCMake-e0f740f1b1708ac4ec43a57b8f1cbc549afe5df3.zip
CMake-e0f740f1b1708ac4ec43a57b8f1cbc549afe5df3.tar.gz
CMake-e0f740f1b1708ac4ec43a57b8f1cbc549afe5df3.tar.bz2
Always cache entries through the cmake instance.
Diffstat (limited to 'Source/cmMarkAsAdvancedCommand.cxx')
-rw-r--r--Source/cmMarkAsAdvancedCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMarkAsAdvancedCommand.cxx b/Source/cmMarkAsAdvancedCommand.cxx
index 10d30f3..8d0e2b3 100644
--- a/Source/cmMarkAsAdvancedCommand.cxx
+++ b/Source/cmMarkAsAdvancedCommand.cxx
@@ -39,7 +39,8 @@ bool cmMarkAsAdvancedCommand
cmState* state = this->Makefile->GetState();
if (!state->GetCacheEntryValue(variable))
{
- state->AddCacheEntry(variable, 0, 0, cmState::UNINITIALIZED);
+ this->Makefile->GetCMakeInstance()->AddCacheEntry(
+ variable, 0, 0, cmState::UNINITIALIZED);
overwrite = true;
}
if (!state->GetCacheEntryValue(variable))