From 9d7abcb39a4cff5db888d73fdaeea1d722e15aba Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 20 Oct 2023 08:53:32 +0200 Subject: [PATCH] Allow compiling with C++20 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af806c4e..d3472889 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ endif() # ``-DCMAKE_CXX_STANDARD=`` when invoking CMake set(CMAKE_CXX_STANDARD 17 CACHE STRING "") -if(NOT CMAKE_CXX_STANDARD MATCHES "14|17") +if(NOT CMAKE_CXX_STANDARD MATCHES "17|20") message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}") endif()