File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
33
33
string (REGEX REPLACE "^.*[ ]version[ ][0-9]+\\ .([0-9]+).*" "\\ 1" CLANG_MINOR "${_clang_version_info} " )
34
34
message (STATUS "Found Clang. Major version ${CLANG_MAJOR} , minor version ${CLANG_MINOR} " )
35
35
set (COMPILER_VERSION clang${CLANG_MAJOR}${CLANG_MINOR} )
36
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcolor-diagnostics" )
37
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fcolor-diagnostics" )
36
38
if (ccache )
37
39
# https://bugzilla.samba.org/show_bug.cgi?id=8118 and color.
38
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics " )
39
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments -fcolor-diagnostics " )
40
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments" )
41
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments" )
40
42
endif ()
41
43
else ()
42
44
set (CLANG_MAJOR 0 )
You can’t perform that action at this time.
0 commit comments