From ebea09c8b45b73fc253effffbd18205953aa7db3 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 15 Aug 2018 19:09:37 +0300 Subject: [PATCH] Added pedantic flag to compiler in cmake --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cdb421d..b4e3a63f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") add_compile_options("-Wall") add_compile_options("-Wextra") + add_compile_options("-pedantic") endif() #---------------------------------------------------------------------------------------