From adb2c0c1b5fa88a2423aa97eff8bbe77d38dbace Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Fri, 12 Jul 2024 21:09:01 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20C++=20version=20to=20C+?= =?UTF-8?q?+23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- cmake/StandardProjectSettings.cmake | 2 +- meson.build | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 783569c..d78e9b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/cmake/StandardProjectSettings.cmake b/cmake/StandardProjectSettings.cmake index 03fb08c..135da17 100644 --- a/cmake/StandardProjectSettings.cmake +++ b/cmake/StandardProjectSettings.cmake @@ -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) diff --git a/meson.build b/meson.build index 23ab427..2666da9 100644 --- a/meson.build +++ b/meson.build @@ -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',