diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-28 20:39:51 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-28 20:39:51 (GMT) |
commit | ed0999c9d1c60bdb5be4354e068a95936819b996 (patch) | |
tree | a03f9f3c55a84c0a33dca7e8a479a8eee835eff7 /Source/cmGlobalGenerator.cxx | |
parent | f9b43b9212b1ae2ba4dd9c4f609f8d5093421398 (diff) | |
download | CMake-ed0999c9d1c60bdb5be4354e068a95936819b996.zip CMake-ed0999c9d1c60bdb5be4354e068a95936819b996.tar.gz CMake-ed0999c9d1c60bdb5be4354e068a95936819b996.tar.bz2 |
ERR: Fix visual studio install
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 1315bb6..14c78e8 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -482,14 +482,18 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir, } int retVal; int timeout = cmGlobalGenerator::s_TryCompileTimeout; + bool hideconsole = cmSystemTools::GetRunCommandHideConsole(); + cmSystemTools::SetRunCommandHideConsole(true); if (!cmSystemTools::RunSingleCommand(makeCommand.c_str(), output, &retVal, 0, false, timeout)) { + cmSystemTools::SetRunCommandHideConsole(hideconsole); cmSystemTools::Error("Generator: execution of make failed."); // return to the original directory cmSystemTools::ChangeDirectory(cwd.c_str()); return 1; } + cmSystemTools::SetRunCommandHideConsole(hideconsole); // The SGI MipsPro 7.3 compiler does not return an error code when // the source has a #error in it! This is a work-around for such |