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 @@ -116,9 +116,9 @@ endif()
116
116
117
117
add_library (libprotobuf ${protobuf_SHARED_OR_STATIC}
118
118
${libprotobuf_lite_files} ${libprotobuf_files} ${libprotobuf_includes} ${libprotobuf_rc_files} )
119
- target_link_libraries (libprotobuf ${CMAKE_THREAD_LIBS_INIT} )
119
+ target_link_libraries (libprotobuf PUBLIC ${CMAKE_THREAD_LIBS_INIT} )
120
120
if (protobuf_WITH_ZLIB )
121
- target_link_libraries (libprotobuf ${ZLIB_LIBRARIES} )
121
+ target_link_libraries (libprotobuf PUBLIC ${ZLIB_LIBRARIES} )
122
122
endif ()
123
123
if (protobuf_LINK_LIBATOMIC )
124
124
target_link_libraries (libprotobuf atomic )
@@ -134,3 +134,8 @@ set_target_properties(libprotobuf PROPERTIES
134
134
OUTPUT_NAME ${LIB_PREFIX} protobuf
135
135
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX} " )
136
136
add_library (protobuf::libprotobuf ALIAS libprotobuf )
137
+
138
+ if (ANDROID )
139
+ find_package (android_log REQUIRED )
140
+ target_link_libraries (libprotobuf PUBLIC android_log::android_log )
141
+ endif ()
Original file line number Diff line number Diff line change @@ -125,3 +125,7 @@ endfunction()
125
125
if (protobuf_MODULE_COMPATIBLE )
126
126
include ("${CMAKE_CURRENT_LIST_DIR} /protobuf-module.cmake" )
127
127
endif ()
128
+
129
+ if (ANDROID )
130
+ find_package (android_log REQUIRED )
131
+ endif ()
You can’t perform that action at this time.
0 commit comments