mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 19:50:34 +00:00
Removed redundant find_package(PkgConfig)
This commit is contained in:
parent
a4697db0cc
commit
3dd256eced
@ -2627,7 +2627,6 @@ else()
|
|||||||
# appropriate binary version string. So, for instance, "4.25.3" becomes "25.3.0".
|
# 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}")
|
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"))
|
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})
|
pkg_check_modules(protobuf REQUIRED IMPORTED_TARGET protobuf=${PROTOBUF_LIBRARY_VERSION})
|
||||||
target_link_libraries(protobuf::libprotobuf INTERFACE PkgConfig::protobuf)
|
target_link_libraries(protobuf::libprotobuf INTERFACE PkgConfig::protobuf)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user