From 605cc6c81d4b9857eb95b98de532976278d61c58 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 9 Sep 2024 10:13:59 -0700 Subject: [PATCH] meson: set the C++ standard to C++11 Matching the CMake as closely as possible, as Meson doesn't have C++11 feature checks like CMAke does. Signed-off-by: Dylan Baker --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 3f49aa163..f8bc344d3 100644 --- a/meson.build +++ b/meson.build @@ -3,6 +3,7 @@ project('nlohmann_json', version : '3.12.0', license : 'MIT', meson_version : '>= 0.64', + default_options: ['cpp_std=c++11'], ) nlohmann_json_dep = declare_dependency(