productbuild: Capture stderr too in CPackProductBuild logs

Stdout and stderr will be merged.

Fixes: #18234
This commit is contained in:
Muhammad Ismail Soboute
2018-08-02 05:56:49 +04:30
committed by Craig Scott
parent f0e82ce9a2
commit 496d22b8cc

View File

@@ -144,10 +144,10 @@ bool cmCPackProductBuildGenerator::RunProductBuild(const std::string& command)
tmpFile += "/ProductBuildOutput.log";
cmCPackLogger(cmCPackLog::LOG_VERBOSE, "Execute: " << command << std::endl);
std::string output, error_output;
std::string output;
int retVal = 1;
bool res = cmSystemTools::RunSingleCommand(
command.c_str(), &output, &error_output, &retVal, nullptr,
command.c_str(), &output, &output, &retVal, nullptr,
this->GeneratorVerbose, cmDuration::zero());
cmCPackLogger(cmCPackLog::LOG_VERBOSE, "Done running command" << std::endl);
if (!res || retVal) {