mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
build: Enable colored compiler errors by default
Noticeable when using Ninja as generator
This commit is contained in:
parent
80fdf7317f
commit
7f2b11ee4f
|
@ -429,9 +429,9 @@ if(CMAKE_INTERPROCEDURAL_OPTIMIZATION)
|
|||
endif()
|
||||
|
||||
# Make sure we have pretty colours
|
||||
option(FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." FALSE)
|
||||
option(DISABLE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." OFF)
|
||||
|
||||
if(FORCE_COLORED_OUTPUT)
|
||||
if(NOT DISABLE_COLORED_OUTPUT)
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
|
|
Loading…
Reference in a new issue