2015-03-13 01:01:30 +00:00
|
|
|
diff --git a/cmake/ConfigOptions.cmake b/cmake/ConfigOptions.cmake
|
|
|
|
index 282659e..6045e31 100644
|
|
|
|
--- a/cmake/ConfigOptions.cmake
|
|
|
|
+++ b/cmake/ConfigOptions.cmake
|
|
|
|
@@ -7,6 +7,8 @@ elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64") AND (CMAKE_SIZEOF_VOID_P
|
2014-06-07 19:53:39 +00:00
|
|
|
elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "i386") AND (CMAKE_SIZEOF_VOID_P EQUAL 8) AND (APPLE))
|
|
|
|
# Mac is weird like that.
|
|
|
|
set(TARGET_ARCH "x64")
|
|
|
|
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
|
|
|
|
+ set(TARGET_ARCH "AARCH64")
|
2015-03-13 01:01:30 +00:00
|
|
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm*")
|
2014-06-07 19:53:39 +00:00
|
|
|
set(TARGET_ARCH "ARM")
|
2015-03-13 01:01:30 +00:00
|
|
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc")
|
|
|
|
@@ -23,6 +25,9 @@ else()
|
2014-06-07 19:53:39 +00:00
|
|
|
option(WITH_SSE2 "Enable SSE2 optimization." OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
+if(TARGET_ARCH MATCHES "AARCH64")
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
if(TARGET_ARCH MATCHES "ARM")
|
|
|
|
if (NOT DEFINED WITH_NEON)
|
|
|
|
option(WITH_NEON "Enable NEON optimization." ON)
|