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)