From 1c0235db4d4da5957bfc07dbdb8bc49d080ecbc3 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 22 Jan 2018 14:37:44 +0100 Subject: [PATCH] Enable more warnings. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50375e4..43029d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,12 @@ project(FMRI CXX) # Allow us to define custom modules set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules") +# Enable modern C++ features set(CMAKE_CXX_STANDARD 17) +# More warnings +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") + # Define executable and dependencies file(GLOB fmri_SRC "src/*.cpp"