mirror of
https://github.com/reactos/CMake.git
synced 2025-02-06 03:48:18 +00:00
COMP: Fix windows
This commit is contained in:
parent
0addc75520
commit
733a0e787e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user