aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/convert')
-rw-r--r--host/lib/convert/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/convert/CMakeLists.txt b/host/lib/convert/CMakeLists.txt
index 219d3b74d..82d1e51f2 100644
--- a/host/lib/convert/CMakeLists.txt
+++ b/host/lib/convert/CMakeLists.txt
@@ -65,11 +65,15 @@ ENDIF(HAVE_TMMINTRIN_H)
########################################################################
# Check for NEON SIMD headers
########################################################################
+SET(NEON_SIMD_ENABLE ON CACHE BOOL
+ "Use NEON SIMD instructions, if applicable")
+MARK_AS_ADVANCED(NEON_SIMD_ENABLE)
IF(CMAKE_COMPILER_IS_GNUCXX)
CHECK_INCLUDE_FILE_CXX(arm_neon.h HAVE_ARM_NEON_H)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
-IF(HAVE_ARM_NEON_H AND (${CMAKE_SIZEOF_VOID_P} EQUAL 4))
+IF(NEON_SIMD_ENABLE AND HAVE_ARM_NEON_H AND
+ (${CMAKE_SIZEOF_VOID_P} EQUAL 4))
ENABLE_LANGUAGE(ASM)
LIBUHD_APPEND_SOURCES(