diff options
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 3c6fd45..3830ad3 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -177,6 +177,17 @@ public: static long int ModifiedTime(const char* filename); + /** + * Run an executable command and put the stdout in output. + * A temporary file is created in the binaryDir for storing the + * output because windows does not have popen. + */ + static bool RunCommand(const char* command, + std::string& output); + + ///! Generate a temporary file name + static std::string TemporaryFileName(); + private: static bool s_ErrorOccured; }; |