Commit 733a0e78 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: Fix windows

parent 0addc755
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment