meson: Fix libpng fallback dependency variable

The libpng subproject dependency variable name was wrong. It's
libpng_dep:

https://github.com/mesonbuild/libpng/blob/1.6.37/meson.build#L110
This commit is contained in:
Nirbheek Chauhan 2020-11-10 16:18:50 +05:30
parent ed98414686
commit ab7b45feb7

View file

@ -154,7 +154,7 @@ endif
png_dep = dependency('libpng',
required: get_option('png'),
fallback: ['libpng', 'png_dep']
fallback: ['libpng', 'libpng_dep']
)
if png_dep.found()
feature_conf.set('CAIRO_HAS_SVG_SURFACE', 1)