[libpng16] Fixed arm/aarch64 detection in CMakeLists.txt (Gianfranco Costamagna)

This commit is contained in:
Glenn Randers-Pehrson
2016-12-31 13:03:23 -06:00
parent aa5bb2c3dd
commit dd8aa3e939
3 changed files with 7 additions and 4 deletions

View File

@@ -71,7 +71,8 @@ set(PNG_PREFIX "" CACHE STRING "Prefix to add to the API function names")
set(DFA_XTRA "" CACHE FILEPATH "File containing extra configuration settings")
# set definitions and sources for arm
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm")
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "^aarch64")
set(PNG_ARM_NEON_POSSIBLE_VALUES check on off)
set(PNG_ARM_NEON "check" CACHE STRING "Enable ARM NEON optimizations:
check: (default) use internal checking code;