[cmake] deactivate WITH_SSE and WITH_NEON by default

the SIMDI extensions are hard to reliably detect, so deactivate by
default and let the distributor enable them.
This commit is contained in:
Armin Novak
2023-12-12 13:23:23 +01:00
committed by akallabeth
parent 5b0ee107bf
commit ab9462151e

View File

@@ -22,23 +22,9 @@ option(WITH_MANPAGES "Generate manpages." ${MANPAGE_DEF})
option(WITH_PROFILER "Compile profiler." OFF)
option(WITH_GPROF "Compile with GProf profiler." OFF)
if((TARGET_ARCH MATCHES "x86|x64|e2k") AND (NOT DEFINED WITH_SSE2))
option(WITH_SSE2 "Enable SSE2 optimization." ON)
else()
option(WITH_SSE2 "Enable SSE2 optimization." OFF)
endif()
if(TARGET_ARCH MATCHES "ARM")
if (NOT DEFINED WITH_NEON)
option(WITH_NEON "Enable NEON optimization." ON)
else()
option(WITH_NEON "Enable NEON optimization." OFF)
endif()
else()
if(NOT APPLE)
option(WITH_IPP "Use Intel Performance Primitives." OFF)
endif()
endif()
option(WITH_SSE2 "Enable SSE2 optimization." OFF)
option(WITH_NEON "Enable NEON optimization." OFF)
option(WITH_IPP "Use Intel Performance Primitives." OFF)
option(WITH_JPEG "Use JPEG decoding." OFF)