mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Add -fdiagnostics-color=always for Ninja
This commit is contained in:
parent
8483c5351a
commit
cec4a37120
@ -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