From 35e6b4821ddc7399a075573b22c2976f6d898daf Mon Sep 17 00:00:00 2001 From: Kaian Date: Tue, 8 Jan 2019 18:59:37 +0100 Subject: [PATCH] build: add debug compiler flags --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1503ed..aee9144 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ project(sngrep set(PROJECT_NAME sngrep) set(CMAKE_C_STANDARD 11) +set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb -p -g") add_compile_options(-Wall -pedantic -Wextra) include_directories(${CMAKE_SOURCE_DIR}/src)