Skip to content

Commit a100906

Browse files
committed
compiler should print ansi-colored output only if terminal supports it
- gcc has auto flag for it - clang defaults it as on if terminal supports it. Signed-off-by: Łukasz Plewa <[email protected]>
1 parent ebd43ed commit a100906

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/helpers.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ function(add_umf_target_compile_options name)
3131
-Wpedantic
3232
-Wempty-body
3333
-Wunused-parameter
34-
$<$<CXX_COMPILER_ID:GNU>:-fdiagnostics-color=always>
35-
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-fcolor-diagnostics>)
34+
$<$<CXX_COMPILER_ID:GNU>:-fdiagnostics-color=auto>)
3635
if(CMAKE_BUILD_TYPE STREQUAL "Release")
3736
target_compile_definitions(${name} PRIVATE -D_FORTIFY_SOURCE=2)
3837
endif()

0 commit comments

Comments
 (0)