meson: add support for the ImplictConversions option

Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Dylan Baker
2026-09-27 14:47:04 +02:00
committed by Niels Lohmann
parent c3774be4e2
commit d75f9ab161
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -15,6 +15,8 @@ endif
cpp_args = [ cpp_args = [
'-DJSON_USE_GLOBAL_UDLS=@0@'.format( '-DJSON_USE_GLOBAL_UDLS=@0@'.format(
(not get_option('GlobalUDLs')).to_int()), (not get_option('GlobalUDLs')).to_int()),
'-DJSON_USE_IMPLICIT_CONVERSIONS=@0@'.format(
(not get_option('ImplicitConversions')).to_int()),
] ]
nlohmann_json_dep = declare_dependency( nlohmann_json_dep = declare_dependency(
+6
View File
@@ -10,3 +10,9 @@ option(
value: true, value: true,
description: 'Place user-defined string literals in the global namespace', description: 'Place user-defined string literals in the global namespace',
) )
option(
'ImplicitConversions',
type: 'boolean',
value: true,
description: 'Enable implicit conversions',
)