diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-04 14:38:14 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-04 14:38:14 (GMT) |
commit | 0f3661562c396f0d58c09eec54844bbd4d48656d (patch) | |
tree | 93f87969e5afc19c9856c7d9d8eea7380848eafd /Source/cmSystemTools.h | |
parent | 38d1ea9b4c6d79fff36cc19e3fb81a5253b6665f (diff) | |
download | CMake-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.h | 11 |
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); |