Better debug configuration

This commit is contained in:
Phuntsok Drak-pa 2019-05-16 23:47:10 +02:00
parent e4eeeb6ac2
commit 01943328df
1 changed files with 1 additions and 0 deletions

View File

@ -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")