Skip to content

Commit 85c4866

Browse files
committed
Android fix
1 parent f00162e commit 85c4866

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/libprotobuf-lite.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if(protobuf_LINK_LIBATOMIC)
100100
target_link_libraries(libprotobuf-lite PUBLIC atomic)
101101
endif()
102102
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
103-
target_link_libraries(libprotobuf-lite log)
103+
target_link_libraries(libprotobuf-lite PUBLIC log)
104104
endif()
105105
target_include_directories(libprotobuf-lite PUBLIC ${protobuf_source_dir}/src)
106106
if(MSVC AND protobuf_BUILD_SHARED_LIBS)

cmake/libprotobuf.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if(protobuf_LINK_LIBATOMIC)
115115
target_link_libraries(libprotobuf PUBLIC atomic)
116116
endif()
117117
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
118-
target_link_libraries(libprotobuf log)
118+
target_link_libraries(libprotobuf PUBLIC log)
119119
endif()
120120
target_include_directories(libprotobuf PUBLIC ${protobuf_source_dir}/src)
121121
if(MSVC AND protobuf_BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)