From cfb21e3e2b9836d5bf087ad765bb66c8dcb290c3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 4 Dec 2018 09:49:57 +0100 Subject: [PATCH] Tell the compiler to be more pedantic for debug builds. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3c215b..e301d48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -g -Og") +set(CMAKE_CXX_FLAGS_DEBUG + "${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic -Wextra -g -Og") # Do not complain about compatibility-wrapper if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")