From 8b19f672e721fdbf7bf81ad71f3a224209f3d0a7 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 2 Aug 2017 11:32:27 -0400 Subject: [PATCH] CMake: also follow CMAKE_COLOR_MAKEFILE settings --- CMakeModules/CMakeColors.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeModules/CMakeColors.cmake b/CMakeModules/CMakeColors.cmake index 7a9a13e1d..97739627d 100644 --- a/CMakeModules/CMakeColors.cmake +++ b/CMakeModules/CMakeColors.cmake @@ -6,6 +6,9 @@ if(NOT WIN32) if("0" STREQUAL "$ENV{CLICOLOR_FORCE}") set(_use_color OFF) endif() + if(NOT CMAKE_COLOR_MAKEFILE) + set(_use_color OFF) + endif() if(_use_color) string(ASCII 27 Esc)