Detect libtiff properly through pkgconfig
authorDmitry Marakasov <amdmi3@amdmi3.ru>
Wed, 31 Aug 2022 16:17:22 +0000 (19:17 +0300)
committerColin Clark <colin.clark@cclark.uk>
Thu, 1 Sep 2022 12:15:59 +0000 (13:15 +0100)
meson.build

index 38aaa62..083a8f8 100644 (file)
@@ -401,7 +401,7 @@ endif
 tiff_dep = []
 option = get_option('tiff')
 if not option.disabled()
-    tiff_dep = cc.find_library('libtiff', required: get_option('tiff'))
+    tiff_dep = dependency('libtiff-4', required: get_option('tiff'))
     if tiff_dep.found()
         if cc.has_function('TIFFClientOpen', dependencies : tiff_dep)
             conf_data.set('HAVE_TIFF', 1)