diff --git a/CMakeLists.txt b/CMakeLists.txt index 3918bd2d..a9eef461 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,7 +223,7 @@ add_library (cryptopp crypto/cryptopp/sse_simd.cpp ${CRYPTOPP_EXTRA}) -if ((NANO_SIMD_OPTIMIZATIONS OR RAIBLOCKS_SIMD_OPTIMIZATIONS) AND NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") +if (WIN32 OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86(_64)?)$") set (ARGON_CORE crypto/phc-winner-argon2/src/opt.c) else () set (ARGON_CORE crypto/phc-winner-argon2/src/ref.c)