meson: Use the 'curl' feature option

https://bugzilla.gnome.org/show_bug.cgi?id=797346
This commit is contained in:
Xavier Claessens 2018-10-28 06:47:38 -04:00 committed by Tim-Philipp Müller
parent 77398f1c27
commit 8dfe0dd9ce

View file

@ -12,7 +12,7 @@ curl_sources = [
'gstcurlqueue.c', 'gstcurlqueue.c',
] ]
curl_dep = dependency('libcurl', version : '>= 7.35.0', required : false) curl_dep = dependency('libcurl', version : '>= 7.35.0', required : get_option('curl'))
if curl_dep.found() if curl_dep.found()
ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : false) ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : false)