Skip to content
Snippets Groups Projects
Commit a580ee9a authored by Norihiro Watanabe's avatar Norihiro Watanabe Committed by Dmitri Naumov
Browse files

[cmake] coloring compiler output

parent e43760e6
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,16 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL) ...@@ -54,6 +54,16 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
-Wextra -Wextra
) )
# Coloring output
option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." ON)
if (${FORCE_COLORED_OUTPUT})
if (COMPILER_IS_GCC)
add_compile_options (-fdiagnostics-color=always)
elseif (COMPILER_IS_CLANG)
add_compile_options (-fcolor-diagnostics)
endif ()
endif()
# Profiling # Profiling
if(OGS_PROFILE) if(OGS_PROFILE)
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release") if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment