Skip to content

Commit

Permalink
Add flag to not set JSON_NO_IO
Browse files Browse the repository at this point in the history
  • Loading branch information
pfirsich committed Nov 19, 2024
1 parent 63c9f01 commit c114ae9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/nlohmann_json/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ if not nlohmann_json.found()
subdir_done()
endif

nlohmann_json_compile_args = []
if not get_variable('libcommon_json_io', false)
nlohmann_json_compile_args += '-DJSON_NO_IO'
endif

nlohmann_json_dep = declare_dependency(
# no iostreams, please
compile_args: '-DJSON_NO_IO',
compile_args: nlohmann_json_compile_args,
dependencies: nlohmann_json,
)

Expand Down

0 comments on commit c114ae9

Please sign in to comment.