Merge pull request #261 from omasanori/cflags

Make CMAKE_C_FLAGS{,_DEBUG} configurable.
This commit is contained in:
Sunrin SHIMURA 2015-05-11 16:02:15 +09:00
commit 45e472556c
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ 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 "-O0 -g -DDEBUG=1")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall -Wextra")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g -DDEBUG=1")
option(STRICT_C89_MODE "Strict c89 mode" OFF)
if(STRICT_C89_MODE)