summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-05 17:33:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-05 17:33:23 (GMT)
commit4a765181cc255cc0f39f3a021c4b4917200ec183 (patch)
treeb1ad2b12060e06305267603c3a27da2a6459f1d3 /Source
parent88b4d5c179cc29c14ecf3fed51cf0e31612f8b99 (diff)
downloadCMake-4a765181cc255cc0f39f3a021c4b4917200ec183.zip
CMake-4a765181cc255cc0f39f3a021c4b4917200ec183.tar.gz
CMake-4a765181cc255cc0f39f3a021c4b4917200ec183.tar.bz2
ENH: flush the output
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackLog.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackLog.cxx b/Source/CPack/cmCPackLog.cxx
index 4b7d285..bb42dc8 100644
--- a/Source/CPack/cmCPackLog.cxx
+++ b/Source/CPack/cmCPackLog.cxx
@@ -208,10 +208,12 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg, size_
if ( error || warning )
{
m_DefaultError->write(msg, length);
+ m_DefaultError->flush();
}
else
{
m_DefaultOutput->write(msg, length);
+ m_DefaultOutput->flush();
}
if ( msg[length-1] == '\n' || length > 2 )
{