diff options
author | Dāvis Mosāns <davispuh@gmail.com> | 2016-11-01 20:36:58 +0200 |
---|---|---|
committer | Dāvis Mosāns <davispuh@gmail.com> | 2016-11-15 01:00:46 +0200 |
commit | 40bd42dfbcafd572ccd3541f1f84177453c9c255 (patch) | |
tree | d6f0528a9320341c2163930a586bb4404501faed /Source/cmProcessTools.h | |
parent | 595feb323479ce6e8f8e8a3a863f9286d9f7bd64 (diff) | |
download | cmake-40bd42dfbcafd572ccd3541f1f84177453c9c255.tar.gz |
Add Encoding option for RunChild, RunMakeCommand and RunProcess
Diffstat (limited to 'Source/cmProcessTools.h')
-rw-r--r-- | Source/cmProcessTools.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmProcessTools.h b/Source/cmProcessTools.h index e5a3fe9f27..df131b95b9 100644 --- a/Source/cmProcessTools.h +++ b/Source/cmProcessTools.h @@ -3,6 +3,7 @@ #ifndef cmProcessTools_h #define cmProcessTools_h +#include "cmProcessOutput.h" #include <cmConfigure.h> #include <iosfwd> @@ -16,6 +17,7 @@ class cmProcessTools { public: + typedef cmProcessOutput::Encoding Encoding; /** Abstract interface for process output parsers. */ class OutputParser { @@ -79,7 +81,8 @@ public: /** Run a process and send output to given parsers. */ static void RunProcess(struct cmsysProcess_s* cp, OutputParser* out, - OutputParser* err = CM_NULLPTR); + OutputParser* err = CM_NULLPTR, + Encoding encoding = cmProcessOutput::Auto); }; #endif |