summaryrefslogtreecommitdiffstats
path: root/Source/cmMarkAsAdvancedCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-17 15:48:52 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-17 15:48:52 (GMT)
commit577cf9194542b874676a08291f3a27a65784d017 (patch)
treebd6840be8cae58d1f0800df1e8397ced84a33608 /Source/cmMarkAsAdvancedCommand.cxx
parente5e0132203ab8b8c2391ad7847cf2204d1e44639 (diff)
downloadCMake-577cf9194542b874676a08291f3a27a65784d017.zip
CMake-577cf9194542b874676a08291f3a27a65784d017.tar.gz
CMake-577cf9194542b874676a08291f3a27a65784d017.tar.bz2
Fix problems with advanced not being marked.
Diffstat (limited to 'Source/cmMarkAsAdvancedCommand.cxx')
-rw-r--r--Source/cmMarkAsAdvancedCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMarkAsAdvancedCommand.cxx b/Source/cmMarkAsAdvancedCommand.cxx
index 1e71b2d..72768c7 100644
--- a/Source/cmMarkAsAdvancedCommand.cxx
+++ b/Source/cmMarkAsAdvancedCommand.cxx
@@ -56,7 +56,7 @@ bool cmMarkAsAdvancedCommand::InitialPass(std::vector<std::string> const& argsIn
cmSystemTools::Error("This should never happen...");
return false;
}
- if ( overwrite )
+ if ( !it.PropertyExists("ADVANCED") || overwrite )
{
it.SetProperty("ADVANCED", value);
}