From af7139c19f99243dffea50e92c35b0e3a5a5698e Mon Sep 17 00:00:00 2001 From: cameel Date: Wed, 22 Jan 2020 17:12:41 +0100 Subject: [PATCH] Enable colorized compiler output when running gcc via cmake --- cmake/EthCompilerSettings.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index 4d73a52cf..cc4489e9f 100644 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -54,6 +54,9 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA message(FATAL_ERROR "${PROJECT_NAME} requires g++ 5.0 or greater.") endif () + # Use fancy colors in the compiler diagnostics + add_compile_options(-fdiagnostics-color) + # Additional Clang-specific compiler settings. elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") if ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")