cmake: add -mfpu=neon if neon build

This commit is contained in:
Olli 2021-08-21 13:25:24 +03:00
parent 28b32c0fbb
commit c65afe49f6

View File

@ -61,6 +61,7 @@ endif()
option(NEON "Use ARM Neon SIMD instructions if in ARM CPU" ON)
if(${NEON} AND ${NEON_CPU})
target_compile_definitions(SoundTouch PRIVATE SOUNDTOUCH_USE_NEON)
target_compile_options(SoundTouch PRIVATE -mfpu=neon)
endif()
install(