diff options
| author | MichaĆ Janiszewski <janisozaur@users.noreply.github.com> | 2017-11-22 16:18:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-22 16:18:45 +0100 |
| commit | 746cfad3de61daf3323b2b3bcb5dbcd05448cfc3 (patch) | |
| tree | ba3a7ba69cd7e74272f8e5a62c250e517a3f9472 | |
| parent | e6c65b93b125cf0be13254cf2f5a9d27cb009707 (diff) | |
| download | vcpkg-746cfad3de61daf3323b2b3bcb5dbcd05448cfc3.tar.gz vcpkg-746cfad3de61daf3323b2b3bcb5dbcd05448cfc3.zip | |
[speexdsp] Only use SSE on x86/amd64
This fixes UWP builds.
| -rw-r--r-- | ports/speexdsp/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/speexdsp/CMakeLists.txt b/ports/speexdsp/CMakeLists.txt index 76a3a9118..59e70ffcf 100644 --- a/ports/speexdsp/CMakeLists.txt +++ b/ports/speexdsp/CMakeLists.txt @@ -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}) |
