瀏覽代碼

Merge topic 'productbuild-merge-output'

496d22b8cc productbuild: Capture stderr too in CPackProductBuild logs

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2257
Craig Scott 7 年之前
父節點
當前提交
d7a52f8c24
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/CPack/cmCPackProductBuildGenerator.cxx

+ 2 - 2
Source/CPack/cmCPackProductBuildGenerator.cxx

@@ -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) {