This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android: Fix undefined reference to `__android_log_write'
when linking protobuf
- Loading branch information
1 parent
fe2468d
commit e8f81bd
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- cmake/OpenCVFindProtobuf.cmake | ||
+++ cmake/OpenCVFindProtobuf.cmake | ||
@@ -46,7 +46,7 @@ | ||
if(TARGET protobuf::libprotobuf) | ||
add_library(libprotobuf INTERFACE IMPORTED) | ||
set_target_properties(libprotobuf PROPERTIES | ||
- INTERFACE_LINK_LIBRARIES protobuf::libprotobuf | ||
+ INTERFACE_LINK_LIBRARIES "protobuf::libprotobuf;${CONAN_OPENCV_PROTOBUF_DEPENDENCIES}" | ||
) | ||
else() | ||
add_library(libprotobuf UNKNOWN IMPORTED) |