summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-07-02 20:27:46 (GMT)
committerBrad King <brad.king@kitware.com>2004-07-02 20:27:46 (GMT)
commit40a5bad9167dc9aca99a203aa0af4d2f41452de3 (patch)
treeeb043932e74c9294a9df74183027e8f4d40b133c /Source
parentb8917c7e6c6f7ccdd0d54480b9ece74a2aa6d07b (diff)
downloadCMake-40a5bad9167dc9aca99a203aa0af4d2f41452de3.zip
CMake-40a5bad9167dc9aca99a203aa0af4d2f41452de3.tar.gz
CMake-40a5bad9167dc9aca99a203aa0af4d2f41452de3.tar.bz2
ENH: Made RunSingleCommand take a double as its timeout length.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx2
-rw-r--r--Source/cmSystemTools.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 5c1d5af..4927da8 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -420,7 +420,7 @@ bool cmSystemTools::RunSingleCommand(
int *retVal,
const char* dir,
bool verbose,
- int timeout)
+ double timeout)
{
if(s_DisableRunCommandOutput)
{
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index f779ecc..061b9cc 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -191,7 +191,7 @@ public:
* function will return false.
*/
static bool RunSingleCommand(const char* command, std::string* output = 0,
- int* retVal = 0, const char* dir = 0, bool verbose = true, int timeout = 0);
+ int* retVal = 0, const char* dir = 0, bool verbose = true, double timeout = 0.0);
/**
* Parse arguments out of a single string command