diff --git a/src/systemd/meson.build b/src/systemd/meson.build index 5a8f1abcf6..c9c484b411 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -64,6 +64,9 @@ if add_languages('cpp', required : false) if cxx.has_argument('-std=c++17') opts += [['c++', '-std=c++17']] endif + if cxx.has_argument('-std=c++20') + opts += [['c++', '-std=c++20']] + endif endif foreach header : _systemd_headers + _not_installed_headers + [libudev_h_path]