mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Added a comment to explain a regular expression
This commit is contained in:
parent
ecbc65028f
commit
a4697db0cc
@ -2623,6 +2623,8 @@ else()
|
||||
find_package(Protobuf)
|
||||
|
||||
if((CMAKE_BUILD_TYPE STREQUAL "Debug") AND Protobuf_FOUND AND absl_FOUND)
|
||||
# This Regular Expression is used to convert the version string provided by `find_package(Protobuf)` into the
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user