Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libnvme/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ else
sources += 'nvme/no-uring.c'
endif

if json_c_dep.found()
if json_c_dep.found() and want_fabrics
sources += 'nvme/json.c'
else
sources += 'nvme/no-json.c'
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ want_nvme = get_option('nvme').disabled() == false
want_libnvme = get_option('libnvme').disabled() == false
want_fabrics = get_option('fabrics').disabled() == false and host_system != 'windows'
want_mi = get_option('mi').disabled() == false and host_system != 'windows'
want_json_c = get_option('json-c').disabled() == false and want_fabrics
want_json_c = get_option('json-c').disabled() == false
want_libkmod = get_option('libkmod').disabled() == false and host_system != 'windows'
want_tests = get_option('tests') and host_system != 'windows'
want_examples = get_option('examples') and host_system != 'windows'
Expand Down
Loading