diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-04 02:34:37 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-04 02:34:37 (GMT) |
commit | 0b150f69c2a724b8ec097ca1657c089a6e2861e8 (patch) | |
tree | abe8d82ca0a9127a3e01e11afa8b2124e3950634 /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | 32c2ed2ef37990060238d2e136b255d7074f6ae4 (diff) | |
download | CMake-0b150f69c2a724b8ec097ca1657c089a6e2861e8.zip CMake-0b150f69c2a724b8ec097ca1657c089a6e2861e8.tar.gz CMake-0b150f69c2a724b8ec097ca1657c089a6e2861e8.tar.bz2 |
ENH: Use the new RunCommand
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index 4486f3c..11032ce 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -66,7 +66,7 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *, // if there are spaces in the makeCommand, assume a full path // and convert it to a path with no spaces in it as the - // RunCommand does not like spaces + // RunSingleCommand does not like spaces #if defined(_WIN32) && !defined(__CYGWIN__) if(makeCommand.find(' ') != std::string::npos) { @@ -86,8 +86,9 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *, } int retVal; - if (!cmSystemTools::RunCommand(makeCommand.c_str(), *output, retVal, - 0, false)) + int timeout = cmGlobalGenerator::s_TryCompileTimeout; + if (!cmSystemTools::RunSingleCommand(makeCommand.c_str(), output, &retVal, + 0, false, timeout)) { cmSystemTools::Error("Generator: execution of devenv failed."); // return to the original directory |