From 4420f5863f40b6636fdc5e5a4ac3760247d69c90 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 May 2024 13:30:53 +0200 Subject: [PATCH] Workaround CMake + ninja lack of compiler output color. --- cmake/config.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/config.cmake b/cmake/config.cmake index 9e46cdf5..f3b35f1f 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -27,6 +27,9 @@ endif() if(WIN32) add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN) +else() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always") endif() if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT EMSCRIPTEN)