From 4a8bacd12c2e932e8246b7763c77bfc005dc9cdd Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 2 Mar 2014 12:29:23 +0900 Subject: [PATCH] enable debug flag in debug build mode --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ed59c29..ba507c2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ execute_process( set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib) set(CMAKE_C_FLAGS "-std=c99") +set(CMAKE_C_FLAGS_DEBUG "-DDEBUG=1") # external libraries add_library(xfile SHARED extlib/xfile/xfile.c)