👷 Update C++ version to C++23

This commit is contained in:
Vladislav Nepogodin 2024-07-12 21:09:01 +04:00
parent a7738cbf04
commit adb2c0c1b5
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ endif()
# Link this 'library' to set the c++ standard / compile-time options requested
add_library(project_options INTERFACE)
target_compile_features(project_options INTERFACE cxx_std_20)
target_compile_features(project_options INTERFACE cxx_std_23)
##
## Target

View File

@ -14,7 +14,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
"RelWithDebInfo")
endif()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

View File

@ -2,7 +2,7 @@ project('cachyos-installer', 'cpp',
version: '0.7.0',
license: 'GPLv3',
meson_version: '>=0.55.0',
default_options: ['cpp_std=c++20',
default_options: ['cpp_std=c++23',
'buildtype=debugoptimized',
'warning_level=3',
'werror=false',