From 32377ce57dcf42dedce81b265f8b02ca51ff1f0b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 8 Dec 2020 09:12:23 +0000 Subject: [PATCH] android: add -llog for libprotobuf --- 3rdparty/protobuf/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/3rdparty/protobuf/CMakeLists.txt b/3rdparty/protobuf/CMakeLists.txt index c71bf9faff..f249d2dcc3 100644 --- a/3rdparty/protobuf/CMakeLists.txt +++ b/3rdparty/protobuf/CMakeLists.txt @@ -153,6 +153,11 @@ set_target_properties(libprotobuf ARCHIVE_OUTPUT_DIRECTORY ${3P_LIBRARY_OUTPUT_PATH} ) +if(ANDROID) + # https://github.com/opencv/opencv/issues/17282 + target_link_libraries(libprotobuf INTERFACE "-landroid" "-llog") +endif() + get_protobuf_version(Protobuf_VERSION "${PROTOBUF_ROOT}/src") set(Protobuf_VERSION ${Protobuf_VERSION} CACHE INTERNAL "" FORCE) -- GitLab