summaryrefslogtreecommitdiffstats
path: root/Source/cmExecProgramCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-18 19:47:17 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-19 11:21:09 (GMT)
commit52b80b2643acdd2f31582fe20773cc4c3740b9ad (patch)
tree77e85d4794c5e270fe23c8315b14c8c229c9b615 /Source/cmExecProgramCommand.h
parentc076476d7de18802d99d3c715caee54f05d52781 (diff)
downloadCMake-52b80b2643acdd2f31582fe20773cc4c3740b9ad.zip
CMake-52b80b2643acdd2f31582fe20773cc4c3740b9ad.tar.gz
CMake-52b80b2643acdd2f31582fe20773cc4c3740b9ad.tar.bz2
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h
index 4892dd8..6d28cdc 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