summaryrefslogtreecommitdiff
path: root/Source/cmExecProgramCommand.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/cmExecProgramCommand.h
parent595feb323479ce6e8f8e8a3a863f9286d9f7bd64 (diff)
downloadcmake-40bd42dfbcafd572ccd3541f1f84177453c9c255.tar.gz
Add Encoding option for RunChild, RunMakeCommand and RunProcess
Diffstat (limited to 'Source/cmExecProgramCommand.h')
-rw-r--r--Source/cmExecProgramCommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h
index 7cdf77739f..58e948e559 100644
--- a/Source/cmExecProgramCommand.h
+++ b/Source/cmExecProgramCommand.h
@@ -8,6 +8,7 @@
#include <vector>
#include "cmCommand.h"
+#include "cmProcessOutput.h"
class cmExecutionStatus;
@@ -21,6 +22,7 @@ class cmExecutionStatus;
class cmExecProgramCommand : public cmCommand
{
public:
+ typedef cmProcessOutput::Encoding Encoding;
/**
* This is a virtual constructor for the command.
*/
@@ -46,7 +48,8 @@ public:
private:
static bool RunCommand(const char* command, std::string& output, int& retVal,
const char* directory = CM_NULLPTR,
- bool verbose = true);
+ bool verbose = true,
+ Encoding encoding = cmProcessOutput::Auto);
};
#endif