diff --git a/CMakeLists.txt b/CMakeLists.txt index 076c8da..0863da4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,8 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug") -O0 -fno-omit-frame-pointer ) +else() + add_compile_options(-g) endif() option(CONFIG_ASAN "Enable AddressSanitizer (ASan)" OFF)