aboutsummaryrefslogtreecommitdiff
path: root/cmake/libgav1_cpu_detection.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/libgav1_cpu_detection.cmake')
-rw-r--r--cmake/libgav1_cpu_detection.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/libgav1_cpu_detection.cmake b/cmake/libgav1_cpu_detection.cmake
index e17e27c..d79b83a 100644
--- a/cmake/libgav1_cpu_detection.cmake
+++ b/cmake/libgav1_cpu_detection.cmake
@@ -33,17 +33,20 @@ macro(libgav1_optimization_detect)
list(APPEND libgav1_defines "LIBGAV1_ENABLE_AVX2=1")
else()
list(APPEND libgav1_defines "LIBGAV1_ENABLE_AVX2=0")
+ set(libgav1_have_avx2 OFF)
endif()
if(libgav1_have_neon AND LIBGAV1_ENABLE_NEON)
list(APPEND libgav1_defines "LIBGAV1_ENABLE_NEON=1")
else()
list(APPEND libgav1_defines "LIBGAV1_ENABLE_NEON=0")
+ set(libgav1_have_neon, OFF)
endif()
if(libgav1_have_sse4 AND LIBGAV1_ENABLE_SSE4_1)
list(APPEND libgav1_defines "LIBGAV1_ENABLE_SSE4_1=1")
else()
list(APPEND libgav1_defines "LIBGAV1_ENABLE_SSE4_1=0")
+ set(libgav1_have_sse4 OFF)
endif()
endmacro()