diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2019-03-05 16:28:23 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2019-04-27 08:36:45 (GMT) |
commit | 377d1b7896e07a171bcfe8da6d9dcda6545052c2 (patch) | |
tree | 77aa86afe04a6cca916e7869d974582c2538d381 /Source/cmSystemTools.cxx | |
parent | a9c113fd3e24f95908fedfb6cd2601d8a4795105 (diff) | |
download | CMake-377d1b7896e07a171bcfe8da6d9dcda6545052c2.zip CMake-377d1b7896e07a171bcfe8da6d9dcda6545052c2.tar.gz CMake-377d1b7896e07a171bcfe8da6d9dcda6545052c2.tar.bz2 |
cmSystemTools: Remove unused message-related code, simplify logic
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 212608d..bc853b7 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -168,7 +168,6 @@ bool cmSystemTools::s_RunCommandHideConsole = false; bool cmSystemTools::s_DisableRunCommandOutput = false; bool cmSystemTools::s_ErrorOccured = false; bool cmSystemTools::s_FatalErrorOccured = false; -bool cmSystemTools::s_DisableMessages = false; bool cmSystemTools::s_ForceUnixPaths = false; // replace replace with with as many times as it shows up in source. @@ -326,14 +325,11 @@ void cmSystemTools::Stdout(const std::string& s) void cmSystemTools::Message(const std::string& m, const char* title) { - if (s_DisableMessages) { - return; - } if (s_MessageCallback) { s_MessageCallback(m, title); - return; + } else { + std::cerr << m << std::endl; } - std::cerr << m << std::endl << std::flush; } void cmSystemTools::ReportLastSystemError(const char* msg) |