diff options
author | Brad King <brad.king@kitware.com> | 2013-10-18 15:47:17 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-19 07:21:09 -0400 |
commit | 52b80b2643acdd2f31582fe20773cc4c3740b9ad (patch) | |
tree | 77e85d4794c5e270fe23c8315b14c8c229c9b615 /Source/cmExecProgramCommand.h | |
parent | c076476d7de18802d99d3c715caee54f05d52781 (diff) | |
download | cmake-52b80b2643acdd2f31582fe20773cc4c3740b9ad.tar.gz |
exec_program: Re-implement using KWSys Process
Drop use of cmSystemTools::RunCommand. It used popen on UNIX
(equivalent to /bin/sh -c "$command") and direct CreateProcess calls on
Windows. Implement equivalent behavior using the KWSys Process library.
Copy windows shortpath conversion logic from cmSystemTools::RunCommand.
Diffstat (limited to 'Source/cmExecProgramCommand.h')
-rw-r--r-- | Source/cmExecProgramCommand.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h index 4892dd858b..6d28cdcc72 100644 --- a/Source/cmExecProgramCommand.h +++ b/Source/cmExecProgramCommand.h @@ -57,6 +57,10 @@ public: } cmTypeMacro(cmExecProgramCommand, cmCommand); +private: + static bool RunCommand(const char* command, std::string& output, + int &retVal, const char* directory = 0, + bool verbose = true); }; #endif |