Better debug configuration
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user