1 commit 72489cd0a1c229258abe4f20e4fdfd414dfa88da
2 Author: rnhmjoj <rnhmjoj@inventati.org>
3 Date: Sun Oct 2 00:15:24 2022 +0200
7 diff --git a/cmake/FindNeon.cmake b/cmake/FindNeon.cmake
8 index 0062449..9c436d9 100644
9 --- a/cmake/FindNeon.cmake
10 +++ b/cmake/FindNeon.cmake
12 include(FindPackageHandleStandardArgs)
14 # Check the version of neon supported by the ARM CPU
15 -execute_process(COMMAND cat /proc/cpuinfo | grep Features | grep neon
16 - OUTPUT_VARIABLE neon_version
18 - OUTPUT_STRIP_TRAILING_WHITESPACE)
21 +message(STATUS "Detecting NEON support")
22 +execute_process(COMMAND sed -n "/Features.* neon/q 1" /proc/cpuinfo
23 + RESULT_VARIABLE CPU_HAS_NEON)
25 + message(STATUS "Detecting NEON support - supported")
27 + message(STATUS "Detecting NEON support - not supported" )