Commit 3eaa57a7 authored by myfreeweb's avatar myfreeweb Committed by Pekka Paalanen

build: use pkg-config to find libjpeg in meson

Signed-off-by: myfreeweb's avatarGreg V <greg@unrelenting.technology>
parent f0ba93c1
......@@ -43,7 +43,11 @@ if dep_pango.found() and dep_pangocairo.found() and dep_glib.found()
endif
if get_option('image-jpeg')
deps_cairo_shared += cc.find_library('jpeg')
dep_libjpeg = dependency('libjpeg', required: false)
if not dep_libjpeg.found()
dep_libjpeg = cc.find_library('jpeg')
endif
deps_cairo_shared += dep_libjpeg
config_h.set('HAVE_JPEG', '1')
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment