From 5911871869ffb9b9bc67c1b81a3cace659c31284 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 18 Feb 2021 14:44:44 -0500 Subject: [PATCH] Revert "cmake: Limit color output to terminals" This reverts commit c1da999748aade38240f47eee179cdd58c144c78. --- cmake/px4_add_common_flags.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/px4_add_common_flags.cmake b/cmake/px4_add_common_flags.cmake index 546cbfce30..8f45c71109 100644 --- a/cmake/px4_add_common_flags.cmake +++ b/cmake/px4_add_common_flags.cmake @@ -114,8 +114,8 @@ function(px4_add_common_flags) elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9) - # enable color for gcc > 4.9 when stdout is terminal - add_compile_options(-fdiagnostics-color=auto) + # force color for gcc > 4.9 + add_compile_options(-fdiagnostics-color=always) endif() if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.3)