Workaround CMake + ninja lack of compiler output color.

This commit is contained in:
Bartosz Taudul 2024-05-04 13:30:53 +02:00
parent 6a6caae2ea
commit 4420f5863f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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)