Specify version for optional librsvg dependency

The testsvg test uses a method in librsvg that was introduced in
2.46.0. The test is now skipped if the librsvg version is too old.
(It was previously already skipped if librsvg wasn't found.)
This commit is contained in:
Andreas Persson 2020-08-06 11:59:17 +02:00
parent dd0c364938
commit f4a6a99b7c

View File

@ -141,7 +141,7 @@ if get_option('profiler')
dependencies: [profiler_dep, platform_gio_dep, libm]) dependencies: [profiler_dep, platform_gio_dep, libm])
endif endif
librsvg = dependency('librsvg-2.0', required: false) librsvg = dependency('librsvg-2.0', version: '>= 2.46.0', required: false)
if librsvg.found() if librsvg.found()
executable('testsvg', 'testsvg.c', executable('testsvg', 'testsvg.c',