Browse Source

Fix bug in printing

Andy Cedilnik 23 years ago
parent
commit
a38b917162
1 changed files with 6 additions and 2 deletions
  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 
         {