meson: Fix bzip2 detection on vcpkg

This partially reverts a change done in 711ed64f
without breaking cross-compilation support.
This commit is contained in:
Bruno Lopes 2025-11-25 13:24:32 -03:00
parent 335f84c415
commit 5912f7bc33
No known key found for this signature in database

View file

@ -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