From a48693d273240dea91b9f5d79bd82dd04c158fc9 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 24 May 2020 14:32:13 +0100 Subject: [PATCH] Kill explicit setting of compiler flags in Debug Use the CMake defaults for this. --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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")