-
Notifications
You must be signed in to change notification settings - Fork 34
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
CMake enforce Protobuf 2.6.1 #209
base: master
Are you sure you want to change the base?
Conversation
CMakeLists.txt
Outdated
# https://github.com/protocolbuffers/protobuf/releases | ||
# Let's be safe and require protobuf 2.6.1: | ||
set(REQUIRED_PROTOBUF_VERSION "2.6.1") | ||
message(STATUS "REQUIRED PROTOBUF_VERSION= ${REQUIRED_PROTOBUF_VERSION}") |
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.
This message
seems redundant because succeeding find_package
checks the version and print similar message.
CMakeLists.txt
Outdated
# As today, it s not sure that menoh will work perfectly with future version of protobuf (2.7.0, ...) : | ||
# https://github.com/protocolbuffers/protobuf/releases | ||
# Let's be safe and require protobuf 2.6.1: | ||
set(REQUIRED_PROTOBUF_VERSION "2.6.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.
REQUIRED_PROTOBUF_VERSION
is not used exceptfind_package
if succeeding message
is removed. So we can write the version string 2.6.1
directly in find_package
statement.
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.
done
Thank you for the PR. I made some comments. Please check. @WilliamTambellini |
done |
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.
simplified
Thank you! I know you are working for onnx about the same issue. onnx/onnx#1794 |
No description provided.