mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -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)
|
add_definitions(-DUSE_DEBUG=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# make it colorful under ninja-build
|
||||||
|
if ("${CMAKE_GENERATOR}" STREQUAL "Ninja")
|
||||||
|
add_compiler_flags(-fdiagnostics-color=always)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Setup compiler flags for coverage.
|
# Setup compiler flags for coverage.
|
||||||
if (EVENT__COVERAGE)
|
if (EVENT__COVERAGE)
|
||||||
if (NOT "${CMAKE_BUILD_TYPE_LOWER}" STREQUAL "debug")
|
if (NOT "${CMAKE_BUILD_TYPE_LOWER}" STREQUAL "debug")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user