123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef cmExecProgramCommand_h
- #define cmExecProgramCommand_h
- #include "cmConfigure.h"
- #include <string>
- #include <vector>
- #include "cmCommand.h"
- #include "cmProcessOutput.h"
- class cmExecutionStatus;
- class cmExecProgramCommand : public cmCommand
- {
- public:
- typedef cmProcessOutput::Encoding Encoding;
-
- cmCommand* Clone() override { return new cmExecProgramCommand; }
-
- bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus& status) override;
- private:
- static bool RunCommand(const char* command, std::string& output, int& retVal,
- const char* directory = nullptr, bool verbose = true,
- Encoding encoding = cmProcessOutput::Auto);
- };
- #endif
|