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 @@ -78,3 +78,8 @@ set_target_properties(libprotobuf-lite PROPERTIES
78
78
OUTPUT_NAME ${LIB_PREFIX} protobuf-lite
79
79
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX} " )
80
80
add_library (protobuf::libprotobuf-lite ALIAS libprotobuf-lite )
81
+
82
+ if (ANDROID )
83
+ find_package (android_log REQUIRED )
84
+ target_link_libraries (libprotobuf-lite PUBLIC android_log::android_log )
85
+ 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 )
@@ -132,3 +132,8 @@ set_target_properties(libprotobuf PROPERTIES
132
132
OUTPUT_NAME ${LIB_PREFIX} protobuf
133
133
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX} " )
134
134
add_library (protobuf::libprotobuf ALIAS libprotobuf )
135
+
136
+ if (ANDROID )
137
+ find_package (android_log REQUIRED )
138
+ target_link_libraries (libprotobuf PUBLIC android_log::android_log )
139
+ endif ()
Original file line number Diff line number Diff line change @@ -146,3 +146,7 @@ endfunction()
146
146
if (protobuf_MODULE_COMPATIBLE )
147
147
include ("${CMAKE_CURRENT_LIST_DIR} /protobuf-module.cmake" )
148
148
endif ()
149
+
150
+ if (ANDROID )
151
+ find_package (android_log REQUIRED )
152
+ endif ()
You can’t perform that action at this time.
0 commit comments