mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 01:25:45 -04:00
CMake: Support multiple CMAKE_OSX_ARCHITECTURES
This commit is contained in:
@ -33,9 +33,9 @@ target_compile_definitions(soundtouch PRIVATE ${COMPILE_DEFINITIONS})
|
||||
target_compile_options(soundtouch PRIVATE ${COMPILE_OPTIONS})
|
||||
target_compile_definitions(soundtouch PUBLIC SOUNDTOUCH_FLOAT_SAMPLES ST_NO_EXCEPTION_HANDLING=1)
|
||||
|
||||
if("${CPU_ARCH}" STREQUAL "aarch32" OR "${CPU_ARCH}" STREQUAL "aarch64")
|
||||
if(CPU_ARCH_ARM32 OR CPU_ARCH_ARM64)
|
||||
target_compile_definitions(soundtouch PRIVATE SOUNDTOUCH_USE_NEON)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7.*)$")
|
||||
if(CPU_ARCH_ARM32)
|
||||
target_compile_options(soundtouch PRIVATE -mfpu=neon)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user