diff --git a/CMakeLists.txt b/CMakeLists.txt index 57e876c63..206139295 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,8 +114,10 @@ if(CMAKE_COMPILER_IS_GNUCC) find_package(SSE) if (HAVE_AVX2) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mfpmath=sse -mavx2 -Ofast -funroll-loops -DLV_HAVE_AVX -DLV_HAVE_SSE") - elseif (HAVE_AVX2) + else (HAVE_AVX2) + message("NOT HAVE AVX2") if(HAVE_AVX) + message("HAVE AVX") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mfpmath=sse -mavx -Ofast -funroll-loops -DLV_HAVE_AVX -DLV_HAVE_SSE") elseif(HAVE_SSE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mfpmath=sse -msse4.1 -Ofast -funroll-loops -DLV_HAVE_SSE")