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

[catch2] Set CMAKE_CXX_STANDARD to 17. #25019

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

BillyONeal
Copy link
Member

#24762 (comment) indicates that building for C++17 will include extra catch2 formatters for types like std::string_view, so we should build catch2 with that version selected.

microsoft#24762 (comment) indicates that building for C++17 will include extra catch2 formatters for types like std::string_view, so we should build catch2 with that version selected.
@BillyONeal BillyONeal added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. labels May 31, 2022
fix-install-path.patch
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCATCH_INSTALL_DOCS=OFF
-DCMAKE_CXX_STANDARD=17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a toolchain setting not a port setting.....

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree that it's a toolchain setting in general since it usually isn't ABI affecting. There's no reason everything in the tree needs to agree on the same answer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PhoebeHui No: abseil's feature controls whether it provides a polyfill. That is, absl::string_view will be std::string_view or absl::string_view depending on that feature. In contrast, this merely enables or disables functionality: it allows CHECK(some_string_view == "a literal") to compile and link.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks for your clarification.

@PhoebeHui PhoebeHui added the info:reviewed Pull Request changes follow basic guidelines label Jun 22, 2022
@PhoebeHui PhoebeHui linked an issue Jun 22, 2022 that may be closed by this pull request
@dan-shaw dan-shaw merged commit 50fe35a into microsoft:master Jun 23, 2022
@BillyONeal BillyONeal deleted the catch2-standard-version branch August 4, 2022 02:28
mbeutel added a commit to mbeutel/makeshift that referenced this pull request Oct 11, 2022
Vcpkg problem has since been fixed upstream, cf.
microsoft/vcpkg#25019 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support C++17 features in Catch2
5 participants