add optimization flag

This commit is contained in:
Yuichi Nishiwaki 2014-07-27 14:58:56 +09:00
parent 6f7543e3a2
commit d8692c1cc0
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ execute_process(
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
set(CMAKE_C_FLAGS "-Wall -Wextra")
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra")
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1")
option(USE_C11_FEATURE "Enable c11 feature" OFF)