3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-25 06:32:22 +02:00

[cmake] Add -Wextra compiler warnings globally

This commit is contained in:
Nils Wentzell 2019-04-22 11:24:53 -04:00
parent bb518a3e4c
commit 87a67e8d06

View File

@ -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
$<$<CONFIG:Debug>:-Og>
$<$<CONFIG:Debug>:-ggdb3>
)
add_compile_options(
-Wall
-Wextra
$<$<CONFIG:Debug>:-Og>
$<$<CONFIG:Debug>:-ggdb3>
)
# Load Dependencies
find_package(TRIQS 2.2 REQUIRED)