diff options
| -rw-r--r-- | ports/speexdsp/CMakeLists.txt | 3 |
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() |
