Skip to content

Commit 5b5adfe

Browse files
committed
meson: add support for the ImplictConversions option
1 parent 44e24d7 commit 5b5adfe

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ endif
1515
cpp_args = [
1616
'-DJSON_USE_GLOBAL_UDLS=@0@'.format(
1717
(not get_option('GlobalUDLs')).to_int()),
18+
'-DJSON_USE_IMPLICIT_CONVERSIONS=@0@'.format(
19+
(not get_option('ImplicitConversions')).to_int()),
1820
]
1921

2022
nlohmann_json_dep = declare_dependency(

meson_options.txt

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ option(
1010
value: true,
1111
description: 'Place user-defined string literals in the global namespace',
1212
)
13+
option(
14+
'ImplicitConversions',
15+
type: 'boolean',
16+
value: true,
17+
description: 'Enable implicit conversions',
18+
)

0 commit comments

Comments
 (0)