Skip to content

Commit

Permalink
Replace android_ndk_import_module_cpufeatures macro with its declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Oct 17, 2023
1 parent fa9af4f commit ab83fc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions third_party/cryptopp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ find_package(Threads)
target_link_libraries(cryptopp PRIVATE ${CMAKE_THREAD_LIBS_INIT})

if(ANDROID)
include(AndroidNdkModules)
android_ndk_import_module_cpufeatures()
include_directories(${ANDROID_NDK}/sources/android/cpufeatures)
add_library(cpufeatures ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c)
target_link_libraries(cpufeatures dl)
target_link_libraries(cryptopp PRIVATE cpufeatures)
endif()

0 comments on commit ab83fc1

Please sign in to comment.