diff --git a/3rdparty/carotene/hal/CMakeLists.txt b/3rdparty/carotene/hal/CMakeLists.txt index 819954de13781edceb424f91e10a3f834c6e0e6c..e382f037e805aa037105e071e94a96be317a76dd 100644 --- a/3rdparty/carotene/hal/CMakeLists.txt +++ b/3rdparty/carotene/hal/CMakeLists.txt @@ -53,7 +53,7 @@ endif() set(CAROTENE_NS "carotene_o4t" CACHE STRING "" FORCE) function(compile_carotene) - if(ENABLE_NEON) + if(";${CPU_BASELINE_FINAL};" MATCHES ";NEON;") set(WITH_NEON ON) endif()