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)