From 87a67e8d06ac833665eeae7fafa336727d2dd667 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 22 Apr 2019 11:24:53 -0400 Subject: [PATCH] [cmake] Add -Wextra compiler warnings globally --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18eb0de3..75fcf704 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,10 +18,12 @@ set(BUILD_SHARED_LIBS OFF) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Enable compiler warnings for the whole project -add_compile_options(-Wall - $<$:-Og> - $<$:-ggdb3> - ) +add_compile_options( + -Wall + -Wextra + $<$:-Og> + $<$:-ggdb3> + ) # Load Dependencies find_package(TRIQS 2.2 REQUIRED)