mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Add -fdiagnostics-color=always for Ninja
(cherry picked from commit cec4a37120b7fe07525018e4415db8adcfba9299)
This commit is contained in:
parent
e05136c76a
commit
2594a96ff6
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user