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( ...@@ -272,11 +272,7 @@ glib = dependency(
'glib-2.0', 'glib-2.0',
version : '>= 2.32', version : '>= 2.32',
) )
glib_tap_support = dependency( glib_tap_support = glib.version().version_compare('>=2.38')
'glib-2.0',
version : '>= 2.38',
required : false,
)
gobject = dependency( gobject = dependency(
'gobject-2.0', 'gobject-2.0',
version : '>= 2.32', version : '>= 2.32',
......
...@@ -191,7 +191,7 @@ foreach test_info : tests ...@@ -191,7 +191,7 @@ foreach test_info : tests
) )
endif endif
if glib_tap_support.found() if glib_tap_support
test( test(
test_name, test_name,
exe, exe,
......
...@@ -73,7 +73,7 @@ foreach test_name : compiled_tests ...@@ -73,7 +73,7 @@ foreach test_name : compiled_tests
install : false, install : false,
) )
if glib_tap_support.found() if glib_tap_support
test( test(
test_name, exe, test_name, exe,
args : ['--tap'], 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