summaryrefslogtreecommitdiff
path: root/Source/cmProcessTools.h
diff options
context:
space:
mode:
authorDāvis Mosāns <davispuh@gmail.com>2016-11-01 20:36:58 +0200
committerDāvis Mosāns <davispuh@gmail.com>2016-11-15 01:00:46 +0200
commit40bd42dfbcafd572ccd3541f1f84177453c9c255 (patch)
treed6f0528a9320341c2163930a586bb4404501faed /Source/cmProcessTools.h
parent595feb323479ce6e8f8e8a3a863f9286d9f7bd64 (diff)
downloadcmake-40bd42dfbcafd572ccd3541f1f84177453c9c255.tar.gz
Add Encoding option for RunChild, RunMakeCommand and RunProcess
Diffstat (limited to 'Source/cmProcessTools.h')
-rw-r--r--Source/cmProcessTools.h5
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