From 1f71c7e7e1766895e3d0e95a1ed3ddb57b12dfd7 Mon Sep 17 00:00:00 2001 From: offa Date: Sun, 10 Dec 2023 17:29:06 +0100 Subject: [PATCH] Update to C++20 (#283) --- CMakeLists.txt | 2 +- README.md | 2 +- script/ci_setup.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a55f4dc..e2d0a73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ add_compile_options(-Wall -Woverloaded-virtual ) -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) diff --git a/README.md b/README.md index 0400234..8f203de 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Coverage Report](https://gitlab.com/offa/plug/badges/master/coverage.svg)](https://gitlab.com/offa/plug/commits/master) [![GitHub release](https://img.shields.io/github/release/offa/plug.svg)](https://github.com/offa/plug/releases) [![License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](LICENSE) -[![C++](https://img.shields.io/badge/c++-17-green.svg)]() +[![C++](https://img.shields.io/badge/c++-20-green.svg)]() Software for Fender Mustang Amps. This is a fork of ***piorekf's Plug***. diff --git a/script/ci_setup.sh b/script/ci_setup.sh index a4ffe12..51204d4 100755 --- a/script/ci_setup.sh +++ b/script/ci_setup.sh @@ -19,5 +19,5 @@ apt-get install -y --no-install-recommends \ git clone --depth=1 --branch=v1.14.0 https://github.com/google/googletest.git mkdir googletest/build cd googletest/build -cmake -DCMAKE_CXX_STANDARD=17 .. +cmake -DCMAKE_CXX_STANDARD=20 .. make -j install