diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bd4fb954b4..9b6fedca3f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,7 +186,7 @@ cmake_dependent_option( INSTALL_TEST "Install test binaries if BUILD_TEST is on" ON "BUILD_TEST" OFF) option(USE_CPP_CODE_COVERAGE "Compile C/C++ with code coverage flags" OFF) -option(COLORIZE_OUTPUT "Colorize output during compilation" ON) +option(USE_COLORIZE_OUTPUT "Colorize output during compilation" ON) option(USE_ASAN "Use Address Sanitizer" OFF) option(USE_TSAN "Use Thread Sanitizer" OFF) option(USE_CUDA "Use CUDA" ON) @@ -871,11 +871,11 @@ if(NOT MSVC) append_cxx_flag_if_supported("-Wno-constexpr-not-const" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Wno-missing-braces" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-Qunused-arguments" CMAKE_CXX_FLAGS) - if(${COLORIZE_OUTPUT}) + if(${USE_COLORIZE_OUTPUT}) endif() endif() - if(${COLORIZE_OUTPUT}) + if(${USE_COLORIZE_OUTPUT}) append_cxx_flag_if_supported("-fcolor-diagnostics" CMAKE_CXX_FLAGS) append_cxx_flag_if_supported("-fdiagnostics-color=always" CMAKE_CXX_FLAGS) endif()