mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user