Skip to content

Commit 185a61e

Browse files
committed
build: make json-c dependent on fabrics
The JSON code is used for reading and writing the configuration files used by the fabrics code. Therefore, it does not make sense to enable JSON without fabrics. This simplifies the core dependencies so the JSON- related code can safely assume fabrics is enabled. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 0aa7744 commit 185a61e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ want_nvme = get_option('nvme').disabled() == false
5454
want_libnvme = get_option('libnvme').disabled() == false
5555
want_fabrics = get_option('fabrics').disabled() == false and host_system != 'windows'
5656
want_mi = get_option('mi').disabled() == false and host_system != 'windows'
57-
want_json_c = get_option('json-c').disabled() == false and host_system != 'windows'
57+
want_json_c = get_option('json-c').disabled() == false and want_fabrics
5858
want_libkmod = get_option('libkmod').disabled() == false and host_system != 'windows'
5959
want_tests = get_option('tests') and host_system != 'windows'
6060
want_examples = get_option('examples') and host_system != 'windows'

0 commit comments

Comments
 (0)