浏览代码

Fix bug in printing

Andy Cedilnik 23 年之前
父节点
当前提交
a38b917162
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      Source/cmSystemTools.cxx

+ 6 - 2
Source/cmSystemTools.cxx

@@ -1435,9 +1435,13 @@ bool WindowsRunCommand(const char* command, const char* dir,
  
           //read the stdout pipe 
           memset(buf, 0, sizeof(buf));
-          std::cout << buf << std::flush; 
+          output += buf;
+          if (verbose)
+            {
+            std::cout << buf << std::flush; 
+            }
           }
- 
+        output += "\n";          
         }
       else 
         {