From cf746df26a0cd6e1948988e458fc7305bb9bbdbd Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Wed, 14 Oct 2015 16:24:15 +0300 Subject: Fix error "target specific option mismatch", _mm_addsub_ps intrinsic needs SSE3 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 593f418..b528067 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -270,7 +270,9 @@ elseif(CMAKE_COMPILER_IS_GNUCC) list(APPEND FFTS_EXTRA_LIBRARIES m) endif(HAVE_LIBM) - if(HAVE_EMMINTRIN_H) + if(HAVE_PMMINTRIN_H) + add_definitions(-msse3) + elseif(HAVE_EMMINTRIN_H) add_definitions(-msse2) elseif(HAVE_XMMINTRIN_H) add_definitions(-msse) -- cgit v1.1