Externals: Find and build cpu-features for cryptopp on android

This commit is contained in:
SachinVin 2018-10-19 13:47:24 +05:30 committed by Weiyi Wang
parent 2b768da531
commit cee7c0baa5
2 changed files with 64 additions and 0 deletions

View file

@ -242,3 +242,9 @@ target_include_directories(cryptopp INTERFACE .)
find_package(Threads)
target_link_libraries(cryptopp PRIVATE ${CMAKE_THREAD_LIBS_INIT})
if(ANDROID)
include(AndroidNdkModules)
android_ndk_import_module_cpufeatures()
target_link_libraries(cryptopp PRIVATE cpufeatures)
endif()