From 3dd256eced226d6c7e9ad10917cb3ee65ea3486b Mon Sep 17 00:00:00 2001 From: Victor Castillo Date: Fri, 24 May 2024 03:31:41 +0200 Subject: [PATCH] Removed redundant `find_package(PkgConfig)` --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abc1c9f7b..60f291c05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2627,7 +2627,6 @@ else() # appropriate binary version string. So, for instance, "4.25.3" becomes "25.3.0". string(REGEX REPLACE "^[0-9]+\.([0-9]+\.[0-9]+)$" "\\1.0" PROTOBUF_LIBRARY_VERSION "${Protobuf_VERSION}") if((PROTOBUF_LIBRARY_VERSION VERSION_GREATER_EQUAL "22") AND (PROTOBUF_LIBRARY_VERSION VERSION_LESS "26")) - find_package(PkgConfig REQUIRED) pkg_check_modules(protobuf REQUIRED IMPORTED_TARGET protobuf=${PROTOBUF_LIBRARY_VERSION}) target_link_libraries(protobuf::libprotobuf INTERFACE PkgConfig::protobuf) endif()