diff --git a/CMakeLists.txt b/CMakeLists.txt index aa33d4b7..0aa558d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,10 @@ else() option(ENABLE_LTO "Enable link-time optimization" OFF) endif() +if (CMAKE_BUILD_TYPE STREQUAL Debug) + add_compile_options(-Og) +endif() + if(ENABLE_LTO) add_compile_options(-O3 -flto) add_link_options(-flto)