From f86424414f669650066c7936fd6e9b93fe2f2929 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 21 Jan 2004 15:55:47 -0500 Subject: [PATCH] BUG: ::Stdout method should flush cout after writing data. --- Source/cmSystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index a94f223ae..9f0ea3df5 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -238,7 +238,7 @@ void cmSystemTools::Stdout(const char* s) else { std::cout << s; - std::cout << std::flush; + std::cout.flush(); } } @@ -251,6 +251,7 @@ void cmSystemTools::Stdout(const char* s, int length) else { std::cout.write(s, length); + std::cout.flush(); } }