mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
meson: add support for the ImplictConversions option
This commit is contained in:
parent
a575f8cbde
commit
b65e362b26
@ -15,6 +15,8 @@ endif
|
||||
cpp_args = [
|
||||
'-DJSON_USE_GLOBAL_UDLS=@0@'.format(
|
||||
(not get_option('GlobalUDLs')).to_int()),
|
||||
'-DJSON_USE_IMPLICIT_CONVERSIONS=@0@'.format(
|
||||
(not get_option('ImplicitConversions')).to_int()),
|
||||
]
|
||||
|
||||
nlohmann_json_dep = declare_dependency(
|
||||
|
@ -10,3 +10,9 @@ option(
|
||||
value: true,
|
||||
description: 'Place user-defined string literals in the global namespace',
|
||||
)
|
||||
option(
|
||||
'ImplicitConversions',
|
||||
type: 'boolean',
|
||||
value: true,
|
||||
description: 'Enable implicit conversions',
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user