Skip to content

Commit

Permalink
[catch2] Set CMAKE_CXX_STANDARD to 17. (#25019)
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
BillyONeal authored Jun 23, 2022
1 parent b54b707 commit 50fe35a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ports/catch2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ vcpkg_from_github(
REF v3.0.1
SHA512 065094c19cdf98b40f96a390e887542f895495562a91cdc28d68ce03690866d846ec87d320405312a2b97eacaa5351d3e55f0012bb9de40073c8d4444d82b0a1
HEAD_REF devel
PATCHES
PATCHES
fix-install-path.patch
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCATCH_INSTALL_DOCS=OFF
-DCMAKE_CXX_STANDARD=17
)

vcpkg_cmake_install()
Expand Down
2 changes: 1 addition & 1 deletion ports/catch2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "catch2",
"version-semver": "3.0.1",
"port-version": 1,
"port-version": 2,
"description": "A modern, header-only test framework for unit testing.",
"homepage": "https://github.com/catchorg/Catch2",
"license": "BSL-1.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@
},
"catch2": {
"baseline": "3.0.1",
"port-version": 1
"port-version": 2
},
"cccapstone": {
"baseline": "9b4128ee1153e78288a1b5433e2c06a0d47a4c4e",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/catch2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1c528318ebe10c945563bf9942c8b2141253bf87",
"version-semver": "3.0.1",
"port-version": 2
},
{
"git-tree": "8de83e7d7f07a831293d15e747aa7a980a220ff7",
"version-semver": "3.0.1",
Expand Down

0 comments on commit 50fe35a

Please sign in to comment.