Skip to content
Snippets Groups Projects
Commit 58af4847 authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Simplify how we check for GLib TAP support

parent 7baaa846
No related branches found
No related tags found
1 merge request!488Fix various build-time test failures
......@@ -272,11 +272,7 @@ glib = dependency(
'glib-2.0',
version : '>= 2.32',
)
glib_tap_support = dependency(
'glib-2.0',
version : '>= 2.38',
required : false,
)
glib_tap_support = glib.version().version_compare('>=2.38')
gobject = dependency(
'gobject-2.0',
version : '>= 2.32',
......
......@@ -191,7 +191,7 @@ foreach test_info : tests
)
endif
if glib_tap_support.found()
if glib_tap_support
test(
test_name,
exe,
......
......@@ -73,7 +73,7 @@ foreach test_name : compiled_tests
install : false,
)
if glib_tap_support.found()
if glib_tap_support
test(
test_name, exe,
args : ['--tap'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment