summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-04 14:38:14 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-04 14:38:14 (GMT)
commit0f3661562c396f0d58c09eec54844bbd4d48656d (patch)
tree93f87969e5afc19c9856c7d9d8eea7380848eafd /Source/cmSystemTools.h
parent38d1ea9b4c6d79fff36cc19e3fb81a5253b6665f (diff)
downloadCMake-0f3661562c396f0d58c09eec54844bbd4d48656d.zip
CMake-0f3661562c396f0d58c09eec54844bbd4d48656d.tar.gz
CMake-0f3661562c396f0d58c09eec54844bbd4d48656d.tar.bz2
Cleanup RunCOmmand code and move borland one to vtkWin32ProcessExecution, so that it is all in one place... Add timeout option whihc does not work yet, but it should not produce warning any more
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 7ef4a4d..04806cd 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -270,11 +270,16 @@ public:
*
* If verbose is false, no user-viewable output from the program
* being run will be generated.
+ *
+ * If timeout is specified, the command will be terminated after
+ * timeout expires.
*/
- static bool RunCommand(const char* command, std::string& output, const char* directory = 0,
- bool verbose = true);
+ static bool RunCommand(const char* command, std::string& output,
+ const char* directory = 0,
+ bool verbose = true, int timeout = 0);
static bool RunCommand(const char* command, std::string& output,
- int &retVal, const char* directory = 0, bool verbose = true);
+ int &retVal, const char* directory = 0,
+ bool verbose = true, int timeout = 0);
///! for windows return the short path for the given path, unix just a pass through
static bool GetShortPath(const char* path, std::string& result);