|
@@ -56,6 +56,8 @@
|
|
|
# pragma set woff 1375 /* base class destructor not virtual */
|
|
# pragma set woff 1375 /* base class destructor not virtual */
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+extern char** environ; // For GetEnvironmentVariables
|
|
|
|
|
+
|
|
|
bool cmSystemTools::s_RunCommandHideConsole = false;
|
|
bool cmSystemTools::s_RunCommandHideConsole = false;
|
|
|
bool cmSystemTools::s_DisableRunCommandOutput = false;
|
|
bool cmSystemTools::s_DisableRunCommandOutput = false;
|
|
|
bool cmSystemTools::s_ErrorOccured = false;
|
|
bool cmSystemTools::s_ErrorOccured = false;
|
|
@@ -1278,6 +1280,17 @@ bool cmSystemTools::PutEnv(const char* value)
|
|
|
return ret == 0;
|
|
return ret == 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+std::vector<cmStdString> cmSystemTools::GetEnvironmentVariables()
|
|
|
|
|
+{
|
|
|
|
|
+ std::vector<cmStdString> env;
|
|
|
|
|
+ int cc;
|
|
|
|
|
+ for ( cc = 0; environ[cc]; ++ cc )
|
|
|
|
|
+ {
|
|
|
|
|
+ env.push_back(environ[cc]);
|
|
|
|
|
+ }
|
|
|
|
|
+ return env;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void cmSystemTools::EnableVSConsoleOutput()
|
|
void cmSystemTools::EnableVSConsoleOutput()
|
|
|
{
|
|
{
|
|
|
// Visual Studio 8 2005 (devenv.exe or VCExpress.exe) will not
|
|
// Visual Studio 8 2005 (devenv.exe or VCExpress.exe) will not
|