Skip to content

Commit bfaf89a

Browse files
committed
Android fix
1 parent ed2366d commit bfaf89a

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
@@ -70,7 +70,7 @@ if(protobuf_LINK_LIBATOMIC)
7070
target_link_libraries(libprotobuf-lite PUBLIC atomic)
7171
endif()
7272
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
73-
target_link_libraries(libprotobuf-lite log)
73+
target_link_libraries(libprotobuf-lite PUBLIC log)
7474
endif()
7575
target_include_directories(libprotobuf-lite PUBLIC ${protobuf_source_dir}/src)
7676
if(MSVC AND protobuf_BUILD_SHARED_LIBS)

cmake/libprotobuf.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ if(protobuf_LINK_LIBATOMIC)
122122
target_link_libraries(libprotobuf PUBLIC atomic)
123123
endif()
124124
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
125-
target_link_libraries(libprotobuf log)
125+
target_link_libraries(libprotobuf PUBLIC log)
126126
endif()
127127
target_include_directories(libprotobuf PUBLIC ${protobuf_source_dir}/src)
128128
if(MSVC AND protobuf_BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)