Fix x86 build.

This commit is contained in:
XMRig 2020-10-01 17:46:05 +07:00
parent 4bb8be8a29
commit 1b4a124bc5
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -2,7 +2,7 @@ if (NOT CMAKE_SYSTEM_PROCESSOR)
message(WARNING "CMAKE_SYSTEM_PROCESSOR not defined")
endif()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(/DRAPIDJSON_SSE2)
else()
set(WITH_SSE4_1 OFF)