Skip to content

Commit 6c58028

Browse files
committed
Enable colored diagnostics
A well-known limitation of using ninja is that it requires the user to pass -fcolor-diagnostics=always flag to the compiler to get colored diagnostics. Starting from version 3.24, CMake can do this for us if we set CMAKE_COLOR_DIAGNOSTICS flag to truthful value.
1 parent 3daa6f7 commit 6c58028

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ set(CMAKE_CXX_STANDARD 20)
3333
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
3434
set(CMAKE_CXX_EXTENSIONS FALSE)
3535

36+
set(CMAKE_COLOR_DIAGNOSTICS TRUE)
37+
3638
#BEGIN internal
3739
option(BUILD_SHARED_LIBS "Use \"ON\" to build shared libraries instead of static where it's not specified (not recommended)" OFF)
3840
option(USE_EMSCRIPTEN "Use \"ON\" for config building wasm." OFF)

0 commit comments

Comments
 (0)