[speexdsp] Only use SSE on x86/amd64

This fixes UWP builds.
This commit is contained in:
Michał Janiszewski 2017-11-22 16:18:45 +01:00 committed by GitHub
parent e6c65b93b1
commit 746cfad3de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,12 @@ else ()
add_definitions(-D_LIB)
endif ()
add_definitions(-D_USE_SSE -DHAVE_CONFIG_H -D_WIN32)
add_definitions(-DHAVE_CONFIG_H -D_WIN32)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
add_definitions(-D_USE_SSE)
endif()
include_directories("${SOURCE_PATH}/include"
"${SOURCE_PATH}/win32")
add_library(libspeexdsp ${LIBSPEEXDSP_SOURCES} ${LIBSPEEXDSP_HEADERS})