From 01943328dfda63cb28b7bf17daac1040db8575de Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Thu, 16 May 2019 23:47:10 +0200 Subject: [PATCH] Better debug configuration --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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")