From 6eda5deefffaa284ee01824544befa9536e1507d Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 21 Feb 2022 17:46:11 +0800 Subject: [PATCH] meson.build: Use CMake to find libtiff on MSVC-like 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index b76d1d65c5..4a1e41d4a5 100644 --- a/meson.build +++ b/meson.build @@ -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',