mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
Merge pull request #2245 from janisozaur/patch-2
[speexdsp] Only use SSE on x86/amd64
This commit is contained in:
commit
8b591b2c43
@ -18,7 +18,13 @@ else ()
|
|||||||
add_definitions(-D_LIB)
|
add_definitions(-D_LIB)
|
||||||
endif ()
|
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"
|
include_directories("${SOURCE_PATH}/include"
|
||||||
"${SOURCE_PATH}/win32")
|
"${SOURCE_PATH}/win32")
|
||||||
add_library(libspeexdsp ${LIBSPEEXDSP_SOURCES} ${LIBSPEEXDSP_HEADERS})
|
add_library(libspeexdsp ${LIBSPEEXDSP_SOURCES} ${LIBSPEEXDSP_HEADERS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user