Make neon required on ARM platforms

This commit is contained in:
Paul Ferrand 2020-09-20 15:06:01 +01:00
parent d9ba9c879e
commit d783ba6c87

View file

@ -60,6 +60,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-Werror=return-type)
if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(i.86|x86_64)$")
add_compile_options(-msse2)
elseif (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(armv.*)$")
add_compile_options(-mfloat-abi=hard)
add_compile_options(-mfpu=neon)
endif()
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_CXX_STANDARD 17)