-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dbus] add absl support for higher version protobuf #2130
Conversation
This patch fixed below build error when the system/SDK using higher version of protobuf:
|
406be9a
to
b064c14
Compare
ead2c64
to
809971e
Compare
809971e
to
c12b179
Compare
@jwhui Could you please help on this? Since there don't have any reviewer added. |
src/proto/CMakeLists.txt
Outdated
if ("${Protobuf_VERSION}" MATCHES [[[0-9]+.([0-9]+).[0-9]+]]) | ||
if(CMAKE_MATCH_1 GREATER_EQUAL 22) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use built-in VERSION_LESS
?
if ("${Protobuf_VERSION}" MATCHES [[[0-9]+.([0-9]+).[0-9]+]]) | |
if(CMAKE_MATCH_1 GREATER_EQUAL 22) | |
if (NOT "${Protobuf_VERSION}" VERSION_LESS 22) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bukepo Thank you for your suggestion. Use built-in "VERSION_LESS" to check the version of protobuf. Please see the updated change.
c12b179
to
d935c1e
Compare
Hi @bukepo , could you please give a look at the comments reply in this PR? Thanks! |
b9b9787
to
a08f1ba
Compare
Protobuf which higher than 22 need link absl. Add the linked shared library to pass the build. Signed-off-by: Haoran Wang <[email protected]>
a08f1ba
to
1c1ea4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM:+1:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍🏼
Protobuf which higher than 22 need link absl. Add the linked shared library to pass the build.