meson.build: Use CMake to find libtiff on MSVC-like
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 21 Feb 2022 09:46:11 +0000 (17:46 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 21 Feb 2022 09:53:40 +0000 (17:53 +0800)
The CMake build files for libtiff may or may not generate pkg-config
files for us, so we can use Meson's CMake support to help us find
libtiff, as CMake has built-in support for finding libtiff.

meson.build

index b76d1d65c5ebbf83a90f4a4eab8ea86e646cc737..4a1e41d4a591e406e4557e2dda9e99c87e9ab805 100644 (file)
@@ -419,7 +419,7 @@ pixbuf_dep     = dependency('gdk-pixbuf-2.0', version: gdk_pixbuf_req,
 png_dep        = dependency(is_msvc_like ? 'png' : 'libpng',
                             fallback: ['libpng', 'libpng_dep'],
                             required: true)
-tiff_dep       = dependency('libtiff-4',
+tiff_dep       = dependency(is_msvc_like ? 'tiff' : 'libtiff-4',
                             fallback: ['libtiff', 'libtiff4_dep'],
                             required: true)
 jpeg_dep       = dependency('libjpeg',