From 0e4ec3b41b1484fc983d99cb84e7c3cb676177db Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 5 Mar 2014 00:39:43 +0900 Subject: [PATCH] add -g flag when Debug mode --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08ac017a..110ebf11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY lib) set(CMAKE_C_FLAGS "-Wall -Wextra -std=c99") -set(CMAKE_C_FLAGS_DEBUG "-DDEBUG=1") +set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1") # external libraries add_library(xfile STATIC extlib/xfile/xfile.c)