Merge topic 'makefile-color-when-needed'
bfb9d34f Makefile: Print color escapes only when necessary
This commit is contained in:
commit
51d7a7bb3f
@ -2402,7 +2402,7 @@ void cmSystemTools::MakefileColorEcho(int color, const char* message,
|
|||||||
assumeTTY = 0;
|
assumeTTY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(enabled)
|
if(enabled && color != cmsysTerminal_Color_Normal)
|
||||||
{
|
{
|
||||||
// Print with color. Delay the newline until later so that
|
// Print with color. Delay the newline until later so that
|
||||||
// all color restore sequences appear before it.
|
// all color restore sequences appear before it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user