mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 05:17:54 +03:00
meson: Fix disabling netcf
If the feature is disabled, the corresponding flags should not show up in the compiler command line. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
cc883e1c0c
commit
48fc84a22c
@ -1025,11 +1025,13 @@ libxml_dep = dependency('libxml-2.0', version: '>=' + libxml_version)
|
|||||||
libm_dep = cc.find_library('m')
|
libm_dep = cc.find_library('m')
|
||||||
|
|
||||||
netcf_version = '0.1.8'
|
netcf_version = '0.1.8'
|
||||||
netcf_dep = dependency('netcf', version: '>=' + netcf_version, required: get_option('netcf'))
|
|
||||||
if not get_option('netcf').disabled()
|
if not get_option('netcf').disabled()
|
||||||
|
netcf_dep = dependency('netcf', version: '>=' + netcf_version, required: get_option('netcf'))
|
||||||
if netcf_dep.found()
|
if netcf_dep.found()
|
||||||
conf.set('WITH_NETCF', 1)
|
conf.set('WITH_NETCF', 1)
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
netcf_dep = dependency('', required: false)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
have_gnu_gettext_tools = false
|
have_gnu_gettext_tools = false
|
||||||
|
Loading…
Reference in New Issue
Block a user