COMP: Fix windows

This commit is contained in:
Andy Cedilnik 2006-03-17 12:31:35 -05:00
parent 0addc75520
commit 733a0e787e
1 changed files with 1 additions and 6 deletions

View File

@ -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;