From bd7ffbc258c1ee206d65dd6cc50c207b28057ae2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 18 Sep 2002 10:40:07 -0400 Subject: ENH: If SET(VAR) is called with no other arguments, remove the definition of VAR. --- Source/cmSetCommand.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index 3856444..6065780 100644 --- a/Source/cmSetCommand.cxx +++ b/Source/cmSetCommand.cxx @@ -24,9 +24,10 @@ bool cmSetCommand::InitialPass(std::vector const& args) this->SetError("called with incorrect number of arguments"); return false; } - // SET (VAR ) // this is a no-op + // SET (VAR) // Removes the definition of VAR. if (args.size() == 1) { + m_Makefile->RemoveDefinition(args[0].c_str()); return true; } // here are the options -- cgit v0.12