diff options
author | Brad King <brad.king@kitware.com> | 2002-09-18 14:40:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-09-18 14:40:07 (GMT) |
commit | bd7ffbc258c1ee206d65dd6cc50c207b28057ae2 (patch) | |
tree | 4bdbcb1277a2b32505831cbd07b79d5fc72309dd /Source/cmSetCommand.cxx | |
parent | aa29bbc3260453959b65104881e9b1e18d278700 (diff) | |
download | CMake-bd7ffbc258c1ee206d65dd6cc50c207b28057ae2.zip CMake-bd7ffbc258c1ee206d65dd6cc50c207b28057ae2.tar.gz CMake-bd7ffbc258c1ee206d65dd6cc50c207b28057ae2.tar.bz2 |
ENH: If SET(VAR) is called with no other arguments, remove the definition of VAR.
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r-- | Source/cmSetCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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<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 |