diff --git a/CMakeLists.txt b/CMakeLists.txt index 62c678ea9..7496abac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,11 +200,11 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le") endif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le") if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64") - CHECK_C_COMPILER_FLAG("-march=armv8-a+crc" HAS_ARMV8_CRC) + CHECK_C_COMPILER_FLAG("-march=armv8-a+crc+crypto" HAS_ARMV8_CRC) if(HAS_ARMV8_CRC) message(STATUS " HAS_ARMV8_CRC yes") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a+crc -Wno-unused-function") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a+crc -Wno-unused-function") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a+crc+crypto -Wno-unused-function") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a+crc+crypto -Wno-unused-function") endif(HAS_ARMV8_CRC) endif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")