aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-11-25 14:14:21 -0800
committerGitHub <noreply@github.com>2017-11-25 14:14:21 -0800
commit8b591b2c439727e8c02fbd230de65207f0a244c2 (patch)
treeb366bb8b388a0e8c56ac50038be5b9fabc05941e
parent22fbd3ac362b8225eaf8727a3b077e6beec37c78 (diff)
parent105b2cccc6f37c0b2de76c290a6817c427cd22d2 (diff)
downloadvcpkg-8b591b2c439727e8c02fbd230de65207f0a244c2.tar.gz
vcpkg-8b591b2c439727e8c02fbd230de65207f0a244c2.zip
Merge pull request #2245 from janisozaur/patch-2
[speexdsp] Only use SSE on x86/amd64
-rw-r--r--ports/speexdsp/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/ports/speexdsp/CMakeLists.txt b/ports/speexdsp/CMakeLists.txt
index 76a3a9118..20ae3c290 100644
--- a/ports/speexdsp/CMakeLists.txt
+++ b/ports/speexdsp/CMakeLists.txt
@@ -18,7 +18,13 @@ else ()
add_definitions(-D_LIB)
endif ()
-add_definitions(-D_USE_SSE -DHAVE_CONFIG_H -D_WIN32)
+add_definitions(-DHAVE_CONFIG_H -D_WIN32)
+
+string (TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" LOWERCASE_SYSTEM_PROCESSOR)
+if (LOWERCASE_SYSTEM_PROCESSOR STREQUAL "x86" OR LOWERCASE_SYSTEM_PROCESSOR STREQUAL "amd64")
+ add_definitions(-D_USE_SSE)
+endif()
+
include_directories("${SOURCE_PATH}/include"
"${SOURCE_PATH}/win32")
add_library(libspeexdsp ${LIBSPEEXDSP_SOURCES} ${LIBSPEEXDSP_HEADERS})