mirror of
https://github.com/nlohmann/json.git
synced 2026-09-29 11:10:30 +00:00
meson: add support for the ImplictConversions option
Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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',
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user