From 6cd2d7584660ad3e62879100942f7b6ddcb5e7b0 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Thu, 14 Jan 2016 16:14:53 -0800 Subject: [PATCH] Use -ggdb in debug builds. This makes it possible to see source code in "perf annotate" and such. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5821061..7387669 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,7 @@ else() endif() set(CMAKE_CXX_FLAGS "-Wall -Werror -pedantic-errors ${CMAKE_CXX_FLAGS}") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb") # # Dependencies.