enable debug flag in debug build mode
This commit is contained in:
parent
a6ce873b61
commit
4a8bacd12c
|
@ -11,6 +11,7 @@ execute_process(
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
|
||||||
set(CMAKE_C_FLAGS "-std=c99")
|
set(CMAKE_C_FLAGS "-std=c99")
|
||||||
|
set(CMAKE_C_FLAGS_DEBUG "-DDEBUG=1")
|
||||||
|
|
||||||
# external libraries
|
# external libraries
|
||||||
add_library(xfile SHARED extlib/xfile/xfile.c)
|
add_library(xfile SHARED extlib/xfile/xfile.c)
|
||||||
|
|
Loading…
Reference in New Issue