From e5060065c742f1a922282c71b72c120142e9635d Mon Sep 17 00:00:00 2001 From: Olli Wang Date: Thu, 29 Jul 2021 18:35:14 +0800 Subject: [PATCH] Fixes Android compile error. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ceb0debe5..f6414415e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,6 +562,11 @@ set(cryptopp_SOURCES ${cryptopp_SOURCES} ) +if(ANDROID) + include_directories(${ANDROID_NDK}/sources/android/cpufeatures) + list(APPEND cryptopp_SOURCES ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c) +endif() + set(cryptopp_SOURCES_ASM) if (MSVC AND NOT DISABLE_ASM)