CMake: Also check x86_64 and i686

This commit is contained in:
Amit D 2021-12-17 11:52:47 +02:00 committed by GitHub
parent 82f510fe1e
commit 5fd8bfb5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ endif()
message("CMAKE_SYSTEM_PROCESSOR=<${CMAKE_SYSTEM_PROCESSOR}>")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64|amd64|i386")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|x86_64|AMD64|amd64|i386|i686")
set(HAVE_NEON FALSE)
@ -233,7 +233,7 @@ if(HAVE_NEON)
add_definitions("-DHAVE_NEON")
endif()
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64|amd64|i386")
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|x86_64|AMD64|amd64|i386|i686")
# auto optimize - used only for information about available vectors
include(OptimizeForArchitecture)