diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-17 17:31:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-17 17:31:35 (GMT) |
commit | 733a0e787e839c1cd72971711389f3844c937bca (patch) | |
tree | 5c29f6e93efb7df061a4fe779ca16b7f89dc44af /Source/cmSystemTools.cxx | |
parent | 0addc75520d46f628fc84f76ba52c84dfaac5795 (diff) | |
download | CMake-733a0e787e839c1cd72971711389f3844c937bca.zip CMake-733a0e787e839c1cd72971711389f3844c937bca.tar.gz CMake-733a0e787e839c1cd72971711389f3844c937bca.tar.bz2 |
COMP: Fix windows
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 28662a9..c05b59f 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1284,12 +1284,7 @@ bool cmSystemTools::UnsetEnv(const char* value) { #ifdef _WIN32 std::string var = value; - std::string::size_type pos = var.find("="); - if ( pos == var.npos ) - { - continue; - } - var = var.substr(0, pos+1); + var += "="; return cmSystemTools::PutEnv(var.c_str()); #else return unsetenv(value) == 0; |