3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 12:03:50 +01:00

[cmake] No longer add '-Og' for debug builds

This commit is contained in:
Nils Wentzell 2020-06-18 13:58:55 -04:00
parent fe53a65b5f
commit 853ebf2d6a

View File

@ -93,10 +93,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Global compiler options # Global compiler options
option(BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF) option(BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF)
add_compile_options( add_compile_options($<$<CONFIG:Debug>:-ggdb3>)
$<$<CONFIG:Debug>:-Og>
$<$<CONFIG:Debug>:-ggdb3>
)
# Create an Interface target for compiler warnings # Create an Interface target for compiler warnings
add_library(${PROJECT_NAME}_warnings INTERFACE) add_library(${PROJECT_NAME}_warnings INTERFACE)