From f7896b20bf49b62bacd9a2fce0c232d1dba5a9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Thor=C3=A9n?= Date: Tue, 2 Jan 2024 11:14:27 +0100 Subject: [PATCH] Update CMakeLists.txt Co-authored-by: Andrey Filipenkov --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e47dff13..9c24a069f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,10 +76,10 @@ option(ENABLE_STATIC_AI_LIBS "Add AI code into VCMI lib directly" ${staticAI}) option(ENABLE_COLORIZED_COMPILER_OUTPUT "Colorize compilation output (Clang/GNU)." OFF) -if(${ENABLE_COLORIZED_COMPILER_OUTPUT}) - if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +if(ENABLE_COLORIZED_COMPILER_OUTPUT) + if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") add_compile_options(-fcolor-diagnostics) - elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") add_compile_options(-fdiagnostics-color=always) endif() endif()