diff --git a/CMakeLists.txt b/CMakeLists.txt index a5d01295..ec97ffcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -417,12 +417,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) message(WARNING "GCC 4.4 will be required soon, please upgrade") endif() - if (CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_C_FLAGS - "${CMAKE_C_FLAGS} -O0 -fno-omit-frame-pointer -fno-inline") - set(CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -O0 -fno-omit-frame-pointer -fno-inline") - elseif (ENABLE_SIMD) + if (ENABLE_SIMD) if (X86 OR X86_64) set(CMAKE_C_FLAGS_RELEASE "-O3 -msse2 -mfpmath=sse -ftree-vectorize -ftree-slp-vectorize") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -msse2 -mfpmath=sse -ftree-vectorize -ftree-slp-vectorize")