From c62b45b202065d15ce0860b7e143ccb18fa54de3 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 16 Feb 2015 22:05:19 +0100 Subject: Build with -ggdb on DEBUG build --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6887ea..0b21544 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ configure_file( set(CMAKE_C_STANDARD 11) set(CMAKE_C_COMPILER "clang") set(CMAKE_C_FLAGS "-Weverything -fstack-protector-all -fPIE ${CMAKE_C_FLAGS}") +set(CMAKE_C_FLAGS_DEBUG "-ggdb") set(CMAKE_EXE_LINKER_FLAGS "-Wl,-z,relro -Wl,-z,now -pie ${CMAKE_EXE_LINKER_FLAG}") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) -- cgit v1.2.3-70-g09d2