[CMAKE/GCC] Set O2 and define NDEBUG for GCC release builds.

svn path=/trunk/; revision=69740
This commit is contained in:
Amine Khaldi 2015-10-30 10:03:44 +00:00
parent a0c61c370a
commit 22c6dc878b

View file

@ -131,7 +131,7 @@ endif()
# Optimizations
# FIXME: Revisit this to see if we even need these levels
if(CMAKE_BUILD_TYPE STREQUAL "Release")
add_compile_flags("-O3")
add_compile_flags("-O2 -DNDEBUG")
else()
if(OPTIMIZE STREQUAL "1")
add_compile_flags("-Os -ftracer")