mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Merge pull request #19049 from alalek:issue_17282
This commit is contained in:
commit
f9f9e2ad4a
5
3rdparty/protobuf/CMakeLists.txt
vendored
5
3rdparty/protobuf/CMakeLists.txt
vendored
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user