From 40a5bad9167dc9aca99a203aa0af4d2f41452de3 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Fri, 2 Jul 2004 16:27:46 -0400
Subject: [PATCH] ENH: Made RunSingleCommand take a double as its timeout
 length.

---
 Source/cmSystemTools.cxx | 2 +-
 Source/cmSystemTools.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 5c1d5af856..4927da8c6d 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 f779ecccb2..061b9ccfb4 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
-- 
GitLab