Match these architectures explicitly and fall back to generic.
elseif("${ARCH}" MATCHES "aarch64")
set(ARCHDIR "arch/aarch64")
add_definitions(-DUNALIGNED_OK -DUNROLL_LESS)
-else()
+elseif("${ARCH}" MATCHES "i[3-6]86")
set(ARCHDIR "arch/x86")
add_definitions(-DX86 -DUNALIGNED_OK -DUNROLL_LESS)
add_feature_info(SSE2 1 "Support the SSE2 instruction set, using \"${SSE2FLAG}\"")
+else()
+ message(STATUS "No optimized architecture: using ${ARCHDIR}")
endif()
if("${ARCH}" MATCHES "arm" OR "${ARCH}" MATCHES "aarch64")
set(ZLIB_ARCH_SRCS ${ZLIB_ARCH_SRCS} ${ARCHDIR}/fill_window_arm.c)