mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
meson: use dependency() to find libjpeg
Prefer pkg-config to find_library because some installations of libjpeg may place it outside the default search path. Reported-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
+2
-3
@@ -654,9 +654,8 @@ if get_option('vnc').enabled()
|
||||
vnc = declare_dependency() # dummy dependency
|
||||
png = dependency('libpng', required: get_option('vnc_png'),
|
||||
method: 'pkg-config', static: enable_static)
|
||||
jpeg = cc.find_library('jpeg', has_headers: ['jpeglib.h'],
|
||||
required: get_option('vnc_jpeg'),
|
||||
static: enable_static)
|
||||
jpeg = dependency('libjpeg', required: get_option('vnc_jpeg'),
|
||||
method: 'pkg-config', static: enable_static)
|
||||
sasl = cc.find_library('sasl2', has_headers: ['sasl/sasl.h'],
|
||||
required: get_option('vnc_sasl'),
|
||||
static: enable_static)
|
||||
|
||||
Reference in New Issue
Block a user