summaryrefslogtreecommitdiffstats
path: root/Source/cmMarkAsAdvancedCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-12 13:56:48 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-12 13:56:48 (GMT)
commit895f8c42c0608703dff076eb195092a96a7c9f45 (patch)
tree3fd485e462217b878a7b5bfabf560f8a8bcaa4be /Source/cmMarkAsAdvancedCommand.cxx
parent628625af7219dcb54765bbc62136b543502ecbec (diff)
downloadCMake-895f8c42c0608703dff076eb195092a96a7c9f45.zip
CMake-895f8c42c0608703dff076eb195092a96a7c9f45.tar.gz
CMake-895f8c42c0608703dff076eb195092a96a7c9f45.tar.bz2
Fix mark as advanced. Now it should work properly
Diffstat (limited to 'Source/cmMarkAsAdvancedCommand.cxx')
-rw-r--r--Source/cmMarkAsAdvancedCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMarkAsAdvancedCommand.cxx b/Source/cmMarkAsAdvancedCommand.cxx
index 17f3002..1e71b2d 100644
--- a/Source/cmMarkAsAdvancedCommand.cxx
+++ b/Source/cmMarkAsAdvancedCommand.cxx
@@ -48,6 +48,7 @@ bool cmMarkAsAdvancedCommand::InitialPass(std::vector<std::string> const& argsIn
{
m_Makefile->AddCacheDefinition(variable.c_str(), 0, 0,
cmCacheManager::UNINITIALIZED);
+ overwrite = true;
}
it.Find(variable.c_str());
if ( it.IsAtEnd() )
@@ -55,7 +56,10 @@ bool cmMarkAsAdvancedCommand::InitialPass(std::vector<std::string> const& argsIn
cmSystemTools::Error("This should never happen...");
return false;
}
- it.SetProperty("ADVANCED", value);
+ if ( overwrite )
+ {
+ it.SetProperty("ADVANCED", value);
+ }
}
return true;
}