Add -fdiagnostics-color=always for Ninja

This commit is contained in:
Azat Khuzhin 2018-10-17 11:14:48 +03:00
parent 8483c5351a
commit cec4a37120
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -153,6 +153,11 @@ if (EVENT__ENABLE_VERBOSE_DEBUG)
add_definitions(-DUSE_DEBUG=1)
endif()
# make it colorful under ninja-build
if ("${CMAKE_GENERATOR}" STREQUAL "Ninja")
add_compiler_flags(-fdiagnostics-color=always)
endif()
# Setup compiler flags for coverage.
if (EVENT__COVERAGE)
if (NOT "${CMAKE_BUILD_TYPE_LOWER}" STREQUAL "debug")