File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -83,3 +83,8 @@ set_target_properties(libprotobuf-lite PROPERTIES
83
83
OUTPUT_NAME ${LIB_PREFIX} protobuf-lite
84
84
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX} " )
85
85
add_library (protobuf::libprotobuf-lite ALIAS libprotobuf-lite )
86
+
87
+ if (ANDROID )
88
+ find_package (android_log REQUIRED )
89
+ target_link_libraries (libprotobuf-lite PUBLIC android_log::android_log )
90
+ endif ()
Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ endif()
114
114
115
115
add_library (libprotobuf ${protobuf_SHARED_OR_STATIC}
116
116
${libprotobuf_lite_files} ${libprotobuf_files} ${libprotobuf_includes} ${libprotobuf_rc_files} )
117
- target_link_libraries (libprotobuf ${CMAKE_THREAD_LIBS_INIT} )
117
+ target_link_libraries (libprotobuf PUBLIC ${CMAKE_THREAD_LIBS_INIT} )
118
118
if (protobuf_WITH_ZLIB )
119
- target_link_libraries (libprotobuf ${ZLIB_LIBRARIES} )
119
+ target_link_libraries (libprotobuf PUBLIC ${ZLIB_LIBRARIES} )
120
120
endif ()
121
121
if (protobuf_LINK_LIBATOMIC )
122
122
target_link_libraries (libprotobuf atomic )
@@ -135,3 +135,8 @@ set_target_properties(libprotobuf PROPERTIES
135
135
OUTPUT_NAME ${LIB_PREFIX} protobuf
136
136
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX} " )
137
137
add_library (protobuf::libprotobuf ALIAS libprotobuf )
138
+
139
+ if (ANDROID )
140
+ find_package (android_log REQUIRED )
141
+ target_link_libraries (libprotobuf PUBLIC android_log::android_log )
142
+ endif ()
Original file line number Diff line number Diff line change @@ -150,3 +150,7 @@ endfunction()
150
150
if (protobuf_MODULE_COMPATIBLE )
151
151
include ("${CMAKE_CURRENT_LIST_DIR} /protobuf-module.cmake" )
152
152
endif ()
153
+
154
+ if (ANDROID )
155
+ find_package (android_log REQUIRED )
156
+ endif ()
You can’t perform that action at this time.
0 commit comments