diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 23:49:10 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 23:49:10 +0100 |
| commit | 55f0715ad4edf4485bc7b35e49fbd883ce760e47 (patch) | |
| tree | 2b016eb261d2138a56c00a682abfefa96174a696 /CMakeLists.txt | |
| parent | cc0ce62e7ff283919c95c12a1c8e3b0887271690 (diff) | |
c++23: Replace Common::ToUnderlying with std::to_underlying
Requires at least GCC 11, Clang 13, MSVC 19.30 (VS2022 17.0), or AppleClang 13.1.6 (XCode 13.3).
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f432b77bb..607ba8ba17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,12 +38,12 @@ if (COMPILER STREQUAL "GNU") set(COMPILER "GCC") # prefer printing GCC instead of GNU endif() -# Enforce minimum compiler versions that support the c++20 features we use +# Enforce minimum compiler versions that support the c++23 features we use set (GCC_min_version 11) set (Clang_min_version 14) set (AppleClang_min_version 14.0.3) set (min_xcode_version "14.0") # corresponding xcode version for AppleClang_min_version -set (MSVC_min_version 14.32) +set (MSVC_min_version 19.30) set (min_vs_version "2022 17.2.3") # corresponding Visual Studio version for MSVC_min_version message(STATUS "Using ${COMPILER} ${CMAKE_CXX_COMPILER_VERSION}") |
