Explorar o código

ENH: If SET(VAR) is called with no other arguments, remove the definition of VAR.

Brad King %!s(int64=23) %!d(string=hai) anos
pai
achega
bd7ffbc258
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Source/cmSetCommand.cxx

+ 2 - 1
Source/cmSetCommand.cxx

@@ -24,9 +24,10 @@ bool cmSetCommand::InitialPass(std::vector<std::string> 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