Skip to content

Commit

Permalink
Merge pull request #260 from jmcarcell/c++20
Browse files Browse the repository at this point in the history
Allow building with C++20
  • Loading branch information
mirguest authored Jan 13, 2024
2 parents 8cc891a + 4285529 commit 9d3bc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif()
# ``-DCMAKE_CXX_STANDARD=<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()

Expand Down

0 comments on commit 9d3bc9c

Please sign in to comment.