summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-12-07 11:42:54 +0100
committerSimon Rettberg2022-12-07 11:42:54 +0100
commit8562154b030b7e0af7836b7daf7ecdccc6275af1 (patch)
treef65f487784456d720215d88c095d7310680cf34a
parentRemove projector resolution copy; use --scale-from instead (diff)
downloadbeamergui-8562154b030b7e0af7836b7daf7ecdccc6275af1.tar.gz
beamergui-8562154b030b7e0af7836b7daf7ecdccc6275af1.tar.xz
beamergui-8562154b030b7e0af7836b7daf7ecdccc6275af1.zip
Turn deprecated-declarations into warning
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 900624d..744c18a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,13 +5,13 @@ cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
# project name
project(beamergui)
-set(CMAKE_BUILD_TYPE Debug)
-set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall -Wextra -pedantic -Werror -Wno-multichar")
-set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-multichar")
+set(CMAKE_BUILD_TYPE Release)
+set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall -Wextra -pedantic -Werror")
+set(CMAKE_CXX_FLAGS_RELEASE "-O2")
set(CMAKE_CXX_STANDARD 11)
# Some cmake versions can't understand the CMAKE_CXX_STANDARD option above?
-SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-deprecated-declarations" )
+SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-multichar -Wno-error=deprecated-declarations" )
#
# Qt5