From ebd4e44004890a30f223afca41607a0742ee5734 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Fri, 10 May 2024 11:45:05 -0400 Subject: [PATCH] Meson: Fix building conntest sample without curl --- meson.build | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index a9f02a3380..2534afc488 100644 --- a/meson.build +++ b/meson.build @@ -68,13 +68,12 @@ if brotli_dep.found() endif if get_option('webready') - curl_dep = dependency('libcurl', disabler: true, required: get_option('curl')) + curl_dep = dependency('libcurl', required: get_option('curl')) + web_dep = declare_dependency(dependencies: [curl_dep]) + deps += web_dep else - curl_dep = dependency('', disabler: true, required: false) -endif - -if curl_dep.found() - deps += curl_dep + web_dep = dependency('', disabler: true, required: false) + curl_dep = web_dep endif expat_dep = dependency('expat', disabler: true, required: get_option('xmp')) @@ -118,7 +117,7 @@ cdata.set('EXV_HAVE_XMP_TOOLKIT', expat_dep.found()) cdata.set('EXV_HAVE_BROTLI', brotli_dep.found()) cdata.set('EXV_HAVE_ICONV', iconv_dep.found()) cdata.set('EXV_HAVE_LIBZ', zlib_dep.found()) -cdata.set('EXV_ENABLE_WEBREADY', get_option('webready')) +cdata.set('EXV_ENABLE_WEBREADY', web_dep.found()) cdata.set('EXV_USE_CURL', curl_dep.found()) cdata.set('EXV_ENABLE_NLS', intl_dep.found()) cdata.set('EXV_ENABLE_FILESYSTEM', true) @@ -157,7 +156,7 @@ executable( samples = { 'addmoddel': [], - 'conntest': curl_dep, + 'conntest': web_dep, 'convert-test': [], 'easyaccess-test': [], 'exifcomment': [],