From 6922ff42d8d08195ce8c91fb683a9539d5c20237 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Tue, 8 Nov 2016 23:50:55 +0100 Subject: [PATCH] error on the default warnings --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c0f347f4..3fe0add1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -849,7 +849,7 @@ endif() # Stratagus needs to have char by default signed # No idea how to tell this to other compilers if(CMAKE_COMPILER_IS_GNUCXX) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char -std=gnu++0x") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char -std=gnu++0x -Werror") endif() if(CMAKE_COMPILER_IS_GNUC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char")