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 {