add -g flag when Debug mode

This commit is contained in:
Yuichi Nishiwaki 2014-03-05 00:39:43 +09:00
parent a243134dca
commit 0e4ec3b41b
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY lib) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY lib)
set(CMAKE_C_FLAGS "-Wall -Wextra -std=c99") 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 # external libraries
add_library(xfile STATIC extlib/xfile/xfile.c) add_library(xfile STATIC extlib/xfile/xfile.c)