meson: add support for the ImplictConversions option
Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
parent
a079ed8cde
commit
e40b32d278
@ -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