fix build failure when cross building: allow DEFAULT_SIMD_FLAGS to be overwrriten
@@ -93,7 +93,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
#default SIMD configuration uses native build flags
#when packaging and x86, use sse3 so the binaries work across multiple x86 variants
+ if(NOT DEFAULT_SIMD_FLAGS)
set(DEFAULT_SIMD_FLAGS "native")
+ endif()
if ("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr" AND X86)
set(DEFAULT_SIMD_FLAGS "SSE3")
endif()
