summaryrefslogtreecommitdiffstats
path: root/Source/cmBootstrapCommands.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-25 14:31:29 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-25 14:31:29 (GMT)
commit33e865c041d95e383ce7e843a1a785cda78d13b7 (patch)
tree1d4f8014232a0ce4f6446123f472de6dc0d52751 /Source/cmBootstrapCommands.cxx
parent04fc897536fea61b548f06c21efca55db755a7e2 (diff)
downloadCMake-33e865c041d95e383ce7e843a1a785cda78d13b7.zip
CMake-33e865c041d95e383ce7e843a1a785cda78d13b7.tar.gz
CMake-33e865c041d95e383ce7e843a1a785cda78d13b7.tar.bz2
ENH: Add unset() command.
This introduces the unset() command to make it easy to unset CMake variables, environment variables, and CMake cache variables. Previously it was not even possible to unset ENV or CACHE variables (as in completely remove them). Changes based on patch from Philip Lowman. See issue #7507.
Diffstat (limited to 'Source/cmBootstrapCommands.cxx')
-rw-r--r--Source/cmBootstrapCommands.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmBootstrapCommands.cxx b/Source/cmBootstrapCommands.cxx
index b8031fc..f14b024 100644
--- a/Source/cmBootstrapCommands.cxx
+++ b/Source/cmBootstrapCommands.cxx
@@ -93,6 +93,7 @@
#include "cmTargetLinkLibrariesCommand.cxx"
#include "cmTryCompileCommand.cxx"
#include "cmTryRunCommand.cxx"
+#include "cmUnsetCommand.cxx"
void GetBootstrapCommands(std::list<cmCommand*>& commands)
{
@@ -163,4 +164,5 @@ void GetBootstrapCommands(std::list<cmCommand*>& commands)
commands.push_back(new cmTargetLinkLibrariesCommand);
commands.push_back(new cmTryCompileCommand);
commands.push_back(new cmTryRunCommand);
+ commands.push_back(new cmUnsetCommand);
}