mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-12 20:39:49 -05:00
productbuild: Capture stderr too in CPackProductBuild logs
Stdout and stderr will be merged. Fixes: #18234
This commit is contained in:
committed by
Craig Scott
parent
f0e82ce9a2
commit
496d22b8cc
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user