Merge pull request #261 from omasanori/cflags
Make CMAKE_C_FLAGS{,_DEBUG} configurable.
This commit is contained in:
commit
45e472556c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue