From 98f7af062e5054395ecf32cd67bd1026012d7ef5 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Thu, 20 Dec 2018 22:34:59 +0100 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) 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() -- 2.30.2