From: Andreas Tille Date: Thu, 20 Dec 2018 21:34:59 +0000 (+0100) Subject: Do not set -Werror which makes build fail when using gcc-7 X-Git-Tag: archive/raspbian/1.3.2+dfsg-5+rpi1~1^2^2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=98f7af062e5054395ecf32cd67bd1026012d7ef5;p=libcereal.git Do not set -Werror which makes build fail when using gcc-7 last-Update: Thu, 31 Aug 2017 23:24:39 +0200 Bug-Debian: https://bugs.debian.org/853486 Gbp-Pq: Name no_-Werror.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 52dd3df..c4fc590 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,10 +18,6 @@ if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj /W3 /WX") else() set(CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic -Wold-style-cast ${CMAKE_CXX_FLAGS}") - option(WITH_WERROR "Compile with '-Werror' C++ compiler flag" ON) - if(WITH_WERROR) - set(CMAKE_CXX_FLAGS "-Werror ${CMAKE_CXX_FLAGS}") - endif(WITH_WERROR) if(CMAKE_VERSION VERSION_LESS 3.1) set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") else()