From: Côme Chilliet Date: Tue, 29 Nov 2016 05:01:14 +0000 (+0700) Subject: Added pedantic to debug build options to avoid problems such as the VLA one in the... X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=3269541649be9ae4cabdd5a7891e5216518520ad Added pedantic to debug build options to avoid problems such as the VLA one in the future --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bad38c..3f11cf9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/Source") ### CMake config set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 --std=c++11") -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wno-parentheses -g -pg --std=c++11") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wno-parentheses -pedantic -g -pg --std=c++11") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -Wno-parentheses -O2 -std=c++11") if(NOT CMAKE_INSTALL_PREFIX AND WIN32)