From 5a984b811cb70934058b1799a791285e46bc8eed Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Wed, 5 Aug 2020 03:04:21 -0700 Subject: [PATCH] Build: Re-enable -Werror when building with GCC It looks like PR #2986 mistakenly removed this from both the Clang and GCC CXX_FLAGS, when the intention seems to have been to only disable it for Clang. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f434a71a5f9..ba6296f2e88 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ add_custom_target(check-style set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++2a -fdiagnostics-color=always") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts -Werror") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual") endif()