mirror of
https://github.com/triqs/dft_tools
synced 2025-01-10 21:18:22 +01:00
[cmake] Add -Wextra compiler warnings globally
This commit is contained in:
parent
bb518a3e4c
commit
87a67e8d06
@ -18,7 +18,9 @@ set(BUILD_SHARED_LIBS OFF)
|
|||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
# Enable compiler warnings for the whole project
|
# Enable compiler warnings for the whole project
|
||||||
add_compile_options(-Wall
|
add_compile_options(
|
||||||
|
-Wall
|
||||||
|
-Wextra
|
||||||
$<$<CONFIG:Debug>:-Og>
|
$<$<CONFIG:Debug>:-Og>
|
||||||
$<$<CONFIG:Debug>:-ggdb3>
|
$<$<CONFIG:Debug>:-ggdb3>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user