Skip to content
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

Keep C++ standard flexible #248

Merged
merged 3 commits into from
Jun 15, 2024

Conversation

uilianries
Copy link
Contributor

@uilianries uilianries commented May 30, 2024

Hello!

We are packaging libprotobuf-mutator in ConanCenterIndex (PR conan-io/conan-center-index#24163) and I noted that the required C++ standard is enforced to C++14 only, making not possible to use C++17 or newer.

In this PR I added target_compile_features to keep C++14 as minimal standard required, so people can use newer C++ standards too.

The examples and tests are consuming protobuf-mutator, so they will receive the same C++ standard flag because is marked as public.

Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
@uilianries uilianries requested a review from vitalybuka as a code owner May 30, 2024 11:49
@vitalybuka
Copy link
Collaborator

WDYT about CI failures?

@uilianries
Copy link
Contributor Author

@vitalybuka Sorry, I'll check tomorrow. Thank you for pinging :)

@uilianries
Copy link
Contributor Author

@vitalybuka I updated the c++ standard to use C++14 for Protobuf.

@vitalybuka vitalybuka merged commit 72dc799 into google:master Jun 15, 2024
3 checks passed
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