From 105b2cccc6f37c0b2de76c290a6817c427cd22d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 23 Nov 2017 11:26:30 +0100 Subject: [speexdsp] Check CMAKE_SYSTEM_PROCESSOR to enable SSE --- ports/speexdsp/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3