summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmSystemTools.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index bf57b5c..748b95f 100644
--- a/Source/cmSystemTools.cxx
+++ b/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
{