From 7418bbbbacaeebaac4281da075440756ea2c778f Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Thu, 30 Apr 2015 14:10:06 +0100 Subject: [PATCH] Only warn on errors in release mode This improves development iterations when working in debug mode as you don't have to fix up warnings to get the code to compile. Once a feature is complete you can then run a release build and fix up all the warnings. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb57f3ed..65d807d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,8 @@ endif() add_cxx_compiler_flag(-Wall) add_cxx_compiler_flag(-Wextra) add_cxx_compiler_flag(-Wshadow) -add_cxx_compiler_flag(-Werror) +add_cxx_compiler_flag(-Werror RELEASE) +add_cxx_compiler_flag(-pedantic) add_cxx_compiler_flag(-pedantic-errors) add_cxx_compiler_flag(-Wshorten-64-to-32) add_cxx_compiler_flag(-Wfloat-equal)