diff --git a/CMakeLists.txt b/CMakeLists.txt index 98873d1..c1b00e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -681,6 +681,9 @@ if(BUILD_SHARED_LIB) endif() if(BUILD_ANDROID) target_link_libraries(${DYNAMIC_LIB_NAME} android log) + if(CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a") + target_compile_options(zto_pic PRIVATE -march=armv8-a+crypto) + endif() endif() if(NOT ZTS_DISABLE_CENTRAL_API) target_link_libraries(${DYNAMIC_LIB_NAME} ${CURL_LIBRARIES})