diff options
author | Brad King <brad.king@kitware.com> | 2022-01-27 21:25:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-27 21:25:41 (GMT) |
commit | 9025bde5c3851f3d30beb08b046587adc92f0ff5 (patch) | |
tree | c1e3a38a5a0a8f946b63ddf142698bb6e2cdf3c9 | |
parent | fc153c7ef87280d12ab0da0ea17eeb67f5cc6dfa (diff) | |
parent | 634587e322296580dc16b00d689268e1de5827cc (diff) | |
download | CMake-9025bde5c3851f3d30beb08b046587adc92f0ff5.zip CMake-9025bde5c3851f3d30beb08b046587adc92f0ff5.tar.gz CMake-9025bde5c3851f3d30beb08b046587adc92f0ff5.tar.bz2 |
Merge branch 'message-flush' into release-3.21
Merge-request: !6913
-rw-r--r-- | Source/cmakemain.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 64d93df..95ad320 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -161,11 +161,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 } |