Don't use O2 in the Debug Build.

This commit is contained in:
Miguel A. Colón Vélez 2015-08-08 22:10:40 -04:00
parent 0e783f0003
commit ddc9c394a2
1 changed files with 5 additions and 1 deletions

View File

@ -272,7 +272,11 @@ else()
endif() endif()
if(NOT DEFINED OPTIMIZATION_FLAG) if(NOT DEFINED OPTIMIZATION_FLAG)
set(OPTIMIZATION_FLAG -O2) if (CMAKE_BUILD_TYPE STREQUAL Debug)
set(OPTIMIZATION_FLAG -O0)
else()
set(OPTIMIZATION_FLAG -O2)
endif()
endif() endif()
# Note: -DGTK_DISABLE_DEPRECATED can be used to test a build without gtk deprecated feature. It could be useful to port to a newer API # Note: -DGTK_DISABLE_DEPRECATED can be used to test a build without gtk deprecated feature. It could be useful to port to a newer API