Replace android_ndk_import_module_cpufeatures macro with its declaration

This commit is contained in:
offtkp 2023-10-18 00:34:35 +03:00
parent fa9af4fb2e
commit ab83fc1e71

View file

@ -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()