From 8f5318bb7401f0c469ee3449afd3bd8bcff665e6 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:57:24 +0100 Subject: [PATCH] Allow building with C++20 (#330) Co-authored-by: jmcarcell --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54ecaca0aa..2bcd6bfed5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,7 @@ set(INSTALL_INCLUDE_DIR include CACHE PATH #--- Declare C++ Standard ----------------------------------------------------- set(CMAKE_CXX_STANDARD 17 CACHE STRING "") -if(NOT CMAKE_CXX_STANDARD MATCHES "17") +if(NOT CMAKE_CXX_STANDARD MATCHES "17|20") message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}") endif() message (STATUS "C++ standard: ${CMAKE_CXX_STANDARD}")