From a38b917162c8e4775854855891cbb1c85a112f22 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 30 Sep 2002 10:47:06 -0400 Subject: [PATCH] Fix bug in printing --- Source/cmSystemTools.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index bf57b5cac..748b95faf 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 {