diff --git a/CMakeLists.txt b/CMakeLists.txt index 092e030..dd2758a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ enable_cxx_compiler_flag_if_supported("-Wshadow") enable_cxx_compiler_flag_if_supported("-Wpedantic") enable_cxx_compiler_flag_if_supported("-pedantic") if(CMAKE_BUILD_TYPE STREQUAL "Debug") + enable_cxx_compiler_flag_if_supported("-O0") enable_cxx_compiler_flag_if_supported("-g") enable_cxx_compiler_flag_if_supported("-pg") enable_cxx_compiler_flag_if_supported("-finstrument-functions")