File add-support-for-protobuf-3.25.1.patch of Package libphonenumber.33199
Index: libphonenumber-8.12.23/cpp/CMakeLists.txt
===================================================================
--- libphonenumber-8.12.23.orig/cpp/CMakeLists.txt
+++ libphonenumber-8.12.23/cpp/CMakeLists.txt
@@ -63,7 +63,7 @@ endfunction (find_required_library)
find_package (PkgConfig)
function (check_library_version VARNAME LIBRARY_WITH_VERSION)
if (PKG_CONFIG_FOUND)
- pkg_check_modules (${VARNAME} ${LIBRARY_WITH_VERSION})
+ pkg_check_modules (${VARNAME} ${LIBRARY_WITH_VERSION} IMPORTED_TARGET)
endif ()
endfunction ()
@@ -450,7 +450,7 @@ endif ()
# Libraries used by both libphonenumber and libgeocoding.
set (COMMON_DEPS ${ICU_LIB})
-set (LIBRARY_DEPS ${PROTOBUF_LIB})
+set (LIBRARY_DEPS PkgConfig::PC_PROTOBUF)
if (${USE_BOOST} STREQUAL "ON")
list (APPEND LIBRARY_DEPS ${Boost_LIBRARIES})