aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaƂ Janiszewski <janisozaur@users.noreply.github.com>2017-11-23 11:26:30 +0100
committerGitHub <noreply@github.com>2017-11-23 11:26:30 +0100
commit105b2cccc6f37c0b2de76c290a6817c427cd22d2 (patch)
tree1cce76adfde8127184e670151002f3427ef10a16
parent746cfad3de61daf3323b2b3bcb5dbcd05448cfc3 (diff)
downloadvcpkg-105b2cccc6f37c0b2de76c290a6817c427cd22d2.tar.gz
vcpkg-105b2cccc6f37c0b2de76c290a6817c427cd22d2.zip
[speexdsp] Check CMAKE_SYSTEM_PROCESSOR to enable SSE
-rw-r--r--ports/speexdsp/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/speexdsp/CMakeLists.txt b/ports/speexdsp/CMakeLists.txt
index 59e70ffcf..20ae3c290 100644
--- a/ports/speexdsp/CMakeLists.txt
+++ b/ports/speexdsp/CMakeLists.txt
@@ -20,7 +20,8 @@ endif ()
add_definitions(-DHAVE_CONFIG_H -D_WIN32)
-if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
+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()