meson: Use the 'curl' feature option
authorXavier Claessens <xavier.claessens@collabora.com>
Sun, 28 Oct 2018 10:47:38 +0000 (06:47 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 28 Oct 2018 11:51:34 +0000 (11:51 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=797346

ext/curl/meson.build

index 0496b6e..124d871 100644 (file)
@@ -12,7 +12,7 @@ curl_sources = [
   '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()
   ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : false)