Skip to content

cmake/protobuf.cmake: add pkgconf option to WITH_PROTOBUF#650

Open
juchem wants to merge 1 commit intomysql:trunkfrom
juchem:mj-protobuf
Open

cmake/protobuf.cmake: add pkgconf option to WITH_PROTOBUF#650
juchem wants to merge 1 commit intomysql:trunkfrom
juchem:mj-protobuf

Conversation

@juchem
Copy link

@juchem juchem commented Mar 10, 2026

When building mysql and its dependencies from source and statically linking to protobuf, the latter's dependencies are not automatically pulled in by cmake.

In order to avoid breaking existing functionality of WITH_PROTOBUF=system while still allowing for pkg-config to do its job, this PR adds a new value WITH_PROTOBUF=pkgconf to properly leverage pkg-config to find dependencies.

@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants