Browse Source

Merge topic 'makefile-color-when-needed'

bfb9d34f Makefile: Print color escapes only when necessary
Brad King 10 years ago
parent
commit
51d7a7bb3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmSystemTools.cxx

+ 1 - 1
Source/cmSystemTools.cxx

@@ -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.