enable -O0 switch on debug mode
This commit is contained in:
parent
f7d506cd35
commit
15ce163782
|
@ -12,7 +12,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
|||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
|
||||
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG=1")
|
||||
|
||||
option(USE_C11_FEATURE "Enable c11 feature" OFF)
|
||||
if(USE_C11_FEATURE)
|
||||
|
|
Loading…
Reference in New Issue