diff --git a/cmake/libprotobuf-lite.cmake b/cmake/libprotobuf-lite.cmake index 6a923f6c8..4c485d054 100644 --- a/cmake/libprotobuf-lite.cmake +++ b/cmake/libprotobuf-lite.cmake @@ -18,6 +18,6 @@ endif() target_link_libraries(libprotobuf-lite PRIVATE ${CMAKE_THREAD_LIBS_INIT}) if(${CMAKE_SYSTEM_NAME} STREQUAL "Android") - target_link_libraries(libprotobuf-lite PRIVATE log) + target_link_libraries(libprotobuf-lite PRIVATE -llog) endif() target_include_directories(libprotobuf-lite PUBLIC $ @@ -46 +46 @@ add_library(protobuf::libprotobuf-lite ALIAS libprotobuf-lite) -target_link_libraries(libprotobuf-lite PRIVATE utf8_validity) +target_link_libraries(libprotobuf-lite PUBLIC utf8_validity) diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index 22df1fd14..e4b24ece6 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake @@ -21,7 +21,7 @@ if(protobuf_WITH_ZLIB) target_link_libraries(libprotobuf PRIVATE ${ZLIB_LIBRARIES}) endif() if(${CMAKE_SYSTEM_NAME} STREQUAL "Android") - target_link_libraries(libprotobuf PRIVATE log) + target_link_libraries(libprotobuf PRIVATE -llog) endif() target_include_directories(libprotobuf PUBLIC $