summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-04 02:34:37 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-04 02:34:37 (GMT)
commit0b150f69c2a724b8ec097ca1657c089a6e2861e8 (patch)
treeabe8d82ca0a9127a3e01e11afa8b2124e3950634 /Source/cmGlobalGenerator.cxx
parent32c2ed2ef37990060238d2e136b255d7074f6ae4 (diff)
downloadCMake-0b150f69c2a724b8ec097ca1657c089a6e2861e8.zip
CMake-0b150f69c2a724b8ec097ca1657c089a6e2861e8.tar.gz
CMake-0b150f69c2a724b8ec097ca1657c089a6e2861e8.tar.bz2
ENH: Use the new RunCommand
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 96706d8..e5b83e8 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -24,6 +24,8 @@
#include <windows.h>
#endif
+int cmGlobalGenerator::s_TryCompileTimeout = 0;
+
cmGlobalGenerator::cmGlobalGenerator()
{
// do nothing duh
@@ -485,7 +487,9 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir,
makeCommand += " all";
}
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 make failed.");
// return to the original directory