CMake: also follow CMAKE_COLOR_MAKEFILE settings

main
Adriaan de Groot 8 years ago
parent 2fdccdf090
commit 8b19f672e7

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

Loading…
Cancel
Save