summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-17 16:44:07 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-17 16:44:07 (GMT)
commitd5631f370b2355b69e5895734d8fe7e4c090e8cf (patch)
tree15ad41638db23e19d507b33bbf93fb32eb9d6bc8 /Source/cmSystemTools.cxx
parentfe1fda64310caad84e183da3a2e830b293578ceb (diff)
downloadCMake-d5631f370b2355b69e5895734d8fe7e4c090e8cf.zip
CMake-d5631f370b2355b69e5895734d8fe7e4c090e8cf.tar.gz
CMake-d5631f370b2355b69e5895734d8fe7e4c090e8cf.tar.bz2
ENH: Add a method to remove environment variables
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 55cf61d..3b63e87 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1280,6 +1280,11 @@ bool cmSystemTools::PutEnv(const char* value)
return ret == 0;
}
+bool cmSystemTools::UnsetEnv(const char* value)
+{
+ return unsetenv(value) == 0;
+}
+
std::vector<std::string> cmSystemTools::GetEnvironmentVariables()
{
std::vector<std::string> env;