ENH: make cmake compile

This commit is contained in:
Bill Hoffman 2006-03-17 15:33:21 -05:00
parent 733a0e787e
commit ca8d1bc99b
1 changed files with 1 additions and 7 deletions

View File

@ -1282,13 +1282,7 @@ bool cmSystemTools::PutEnv(const char* value)
bool cmSystemTools::UnsetEnv(const char* value) bool cmSystemTools::UnsetEnv(const char* value)
{ {
#ifdef _WIN32 return false;
std::string var = value;
var += "=";
return cmSystemTools::PutEnv(var.c_str());
#else
return unsetenv(value) == 0;
#endif
} }
std::vector<std::string> cmSystemTools::GetEnvironmentVariables() std::vector<std::string> cmSystemTools::GetEnvironmentVariables()