From ee098fe54d97bc91d83ad474af38f3626048fee2 Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Wed, 28 Oct 2015 11:26:55 +0000 Subject: [PATCH] Removing unnecessary -O3 flag --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31739ebf8..0ce43a359 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,9 +91,8 @@ IF(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0") ELSE(${CMAKE_BUILD_TYPE} STREQUAL "Debug") FIND_PACKAGE(SSE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") IF(HAVE_AVX) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mfpmath=sse -mavx -DLV_HAVE_AVX -DLV_HAVE_SSE") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mfpmath=sse -mavx -DLV_HAVE_AVX -DLV_HAVE_SSE") ELSEIF(HAVE_SSE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mfpmath=sse -msse4.1 -DLV_HAVE_SSE") ENDIF(HAVE_AVX)