From 5912f7bc339a25e962aad5ccb5d6d71a43513c7d Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Tue, 25 Nov 2025 13:24:32 -0300 Subject: [PATCH] meson: Fix bzip2 detection on vcpkg This partially reverts a change done in 711ed64f without breaking cross-compilation support. --- meson.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 0744cc57e5..91769a5a89 100644 --- a/meson.build +++ b/meson.build @@ -770,10 +770,8 @@ libjpeg = dependency('libjpeg') zlib = dependency('zlib') -# Compiler-provided headers can't be found in crossroads environment -if not meson.is_cross_build() - bz2 = cc.find_library('bz2') -else +bz2 = cc.find_library('bz2', required: false) +if not bz2.found() bz2 = dependency('bzip2') endif