Fix check for NEON on 32 bit ARM

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-07-03 15:43:10 +02:00
parent 158c845228
commit e0af8d12e6

View File

@ -142,11 +142,10 @@ endif()
message("CMAKE_SYSTEM_PROCESSOR=<${CMAKE_SYSTEM_PROCESSOR}>")
# Flags for SIMD support
set(HAVE_NEON FALSE)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64")
set(HAVE_NEON FALSE)
CHECK_CXX_COMPILER_FLAG("-mavx" HAVE_AVX)
if(HAVE_AVX)
set(AVX_COMPILE_FLAGS "-mavx")