remove O3 flag

This commit is contained in:
arcan1s
2014-12-29 03:48:06 +03:00
parent 703ab513c0
commit ae9957b621
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ if ( CMAKE_COMPILER_IS_GNUCXX )
set (ADD_CXX_FLAGS "-Wall")
set (CMAKE_CXX_FLAGS "-O0 ${ADD_CXX_FLAGS}")
set (CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set (CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
elseif ( MSVC )
set (ADD_CXX_FLAGS "/W4")
set (CMAKE_CXX_FLAGS "${ADD_CXX_FLAGS}")
@ -67,4 +67,4 @@ endforeach ()
# set docs file
if (ADD_DOCS)
include (docs.cmake)
endif ()
endif ()