summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2021-10-06 23:17:42 +0300
committerEd Tanous <ed@tanous.net>2021-11-04 00:49:00 +0300
commitc52ee72b01507e3ee1fca3fdf79c1d2748439357 (patch)
tree583df354a85929fbaf17d0f8875d789ed408ba42
parente585b905a30441bea64bc159c1fd9ed48b8daf05 (diff)
downloadbmcweb-c52ee72b01507e3ee1fca3fdf79c1d2748439357.tar.xz
build: switch to C++20
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I69230cf0772a2e49b46930fa5a94ac342041baa4
-rw-r--r--meson.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 2ad984191d..3bd38489e4 100644
--- a/meson.build
+++ b/meson.build
@@ -1,10 +1,10 @@
project('bmcweb', 'cpp',
version : '1.0',
- meson_version: '>=0.53.2',
+ meson_version: '>=0.57.0',
default_options: [
'werror=true',
'warning_level=3',
- 'cpp_std=c++17',
+ 'cpp_std=c++20',
'buildtype=debugoptimized',
'b_ndebug=if-release',
'b_lto=true',
@@ -22,8 +22,8 @@ summary('Issues',project_issues_url, section: 'Report Issues')
# Validate the c++ Standard
-if get_option('cpp_std') != 'c++17'
- error('This project requires c++17 support')
+if get_option('cpp_std') != 'c++20'
+ error('This project requires c++20 support')
endif
# Get compiler and default build type