From: Nathan Moinvaziri Date: Tue, 29 Aug 2023 08:27:44 +0000 (-0700) Subject: Use consistent NEON_AVAILABLE variable across CMake/configure. X-Git-Tag: 2.1.4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ecbaa25fce25e458d6f09d8b3c27b4b1e7c4112;p=thirdparty%2Fzlib-ng.git Use consistent NEON_AVAILABLE variable across CMake/configure. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cc42f1a33..3679f9d6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -631,7 +631,7 @@ if(WITH_OPTIM) endif() if(WITH_NEON) check_neon_compiler_flag() - if(MFPU_NEON_AVAILABLE) + if(NEON_AVAILABLE) add_definitions(-DARM_NEON) set(NEON_SRCS ${ARCHDIR}/adler32_neon.c ${ARCHDIR}/chunkset_neon.c ${ARCHDIR}/compare256_neon.c ${ARCHDIR}/slide_hash_neon.c) diff --git a/cmake/detect-intrinsics.cmake b/cmake/detect-intrinsics.cmake index bc938fc23..2358c5788 100644 --- a/cmake/detect-intrinsics.cmake +++ b/cmake/detect-intrinsics.cmake @@ -176,7 +176,7 @@ macro(check_neon_compiler_flag) # include #endif int main() { return 0; }" - MFPU_NEON_AVAILABLE FAIL_REGEX "not supported") + NEON_AVAILABLE FAIL_REGEX "not supported") set(CMAKE_REQUIRED_FLAGS) endmacro()