-
Notifications
You must be signed in to change notification settings - Fork 2k
protobuf new versions #24154
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
protobuf new versions #24154
Conversation
🤖 Beep Boop! This pull request is making changes to 'recipes/protobuf//'. 👋 @Hopobcn you might be interested. 😉 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@coryan, if you could confirm that following this version scheme for the Conan recipes of protobuf is sound, that would be great! |
This comment has been minimized.
This comment has been minimized.
The major versions for 4.25.x and 5.27.x both look correct to me. And thanks for cleaning up older versions. |
Thanks so much! |
Conan v1 pipeline ✔️All green in build 11 (
Conan v2 pipeline ✔️
All green in build 12 ( |
|
||
# Create executable imported target protobuf::protoc | ||
add_executable(protobuf::protoc IMPORTED) | ||
set_property(TARGET protobuf::protoc PROPERTY IMPORTED_LOCATION ${Protobuf_PROTOC_EXECUTABLE}) |
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.
TIL!
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, good job.
@jcar87 @uilianries Thanks a lot for pushing this update. Much appreciated! |
if(NOT TARGET protobuf::protoc) | ||
message(FATAL_ERROR "protoc executable should have been defined as part of find_package(protobuf)") | ||
endif() | ||
|
||
if(NOT COMMAND protobuf_generate) | ||
message(FATAL_ERROR "protobuf_generate should have been defined as part of find_package(protobuf)") | ||
endif() |
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.
That's a very good compromise. Thanks! 🙂
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.
upb
option for versions 27 and higher. Set to False by default - but this might change in the future (being cautious as they are not currently used externally and they are unconditionally static)protobuf::protoc
target, now it's done in a separate file without in-recipe patchingutf8
targets, ONLY when the library is built statically (or upb is required). These targets are unconditionally static and if protobuf is shared, they are private and hidden (and consumers must not link against them)