Merge topic 'makefile-color-when-needed'

bfb9d34f Makefile: Print color escapes only when necessary
This commit is contained in:
Brad King 2015-08-31 09:48:42 -04:00 committed by CMake Topic Stage
commit 51d7a7bb3f
1 changed files with 1 additions and 1 deletions

View File

@ -2402,7 +2402,7 @@ void cmSystemTools::MakefileColorEcho(int color, const char* message,
assumeTTY = 0;
}
if(enabled)
if(enabled && color != cmsysTerminal_Color_Normal)
{
// Print with color. Delay the newline until later so that
// all color restore sequences appear before it.