meson: Fix bzip2 detection on vcpkg
This partially reverts a change done in 711ed64f
without breaking cross-compilation support.
This commit is contained in:
parent
335f84c415
commit
5912f7bc33
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue