summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-28 14:35:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-01-28 14:36:02 (GMT)
commit5126b3b8d1dc21e5835239f6aba51205feb62312 (patch)
tree00dbae8317cddd02a2c2f43d3a4396c36f5332a2 /Source/cmakemain.cxx
parent0bab5fef9e3bfb38df18d548d698c634f07e5724 (diff)
parent634587e322296580dc16b00d689268e1de5827cc (diff)
downloadCMake-5126b3b8d1dc21e5835239f6aba51205feb62312.zip
CMake-5126b3b8d1dc21e5835239f6aba51205feb62312.tar.gz
CMake-5126b3b8d1dc21e5835239f6aba51205feb62312.tar.bz2
Merge topic 'message-flush'
634587e322 message: Restore explicit flushing of messages on stderr Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6913
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 22fdcf8..f3d5536 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -167,11 +167,11 @@ void cmakemainMessageCallback(const std::string& m,
// cannot use it to print messages. Another implementation will
// be needed to print colored messages on Windows.
static_cast<void>(md);
- std::cerr << m << cmakemainGetStack(cm) << "\n";
+ std::cerr << m << cmakemainGetStack(cm) << '\n' << std::flush;
#else
cmsysTerminal_cfprintf(md.desiredColor, stderr, "%s", m.c_str());
fflush(stderr); // stderr is buffered in some cases.
- std::cerr << cmakemainGetStack(cm) << "\n";
+ std::cerr << cmakemainGetStack(cm) << '\n' << std::flush;
#endif
}