summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 14:47:06 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 14:47:06 (GMT)
commita38b917162c8e4775854855891cbb1c85a112f22 (patch)
tree368ba5664b210cf63b49e13ee05e64ed2ff01506 /Source/cmSystemTools.cxx
parentb7789388d35de94cb7ff74ca0f9affb3bc848000 (diff)
downloadCMake-a38b917162c8e4775854855891cbb1c85a112f22.zip
CMake-a38b917162c8e4775854855891cbb1c85a112f22.tar.gz
CMake-a38b917162c8e4775854855891cbb1c85a112f22.tar.bz2
Fix bug in printing
Diffstat (limited to 'Source/cmSystemTools.cxx')
-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
{