meson: Always use a dependency object for dependencies

Fixes a configure error with gst-build:

subprojects/gst-plugins-base/meson.build:235:2: ERROR:  Fetched variable 'gst_check_dep' in the subproject 'gstreamer' is not a dependency object.
This commit is contained in:
Nirbheek Chauhan 2018-09-05 16:32:07 +05:30
parent 30a3fe53fa
commit cbd02b9584
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ subdir('net')
subdir('helpers') subdir('helpers')
if get_option('check').disabled() if get_option('check').disabled()
gst_check_dep = disabler() # KISS for now gst_check_dep = dependency('', required : false)
else else
subdir('check') subdir('check')
endif endif

View file

@ -1,7 +1,7 @@
if not get_option('benchmarks').disabled() if not get_option('benchmarks').disabled()
subdir('benchmarks') subdir('benchmarks')
endif endif
if not get_option('tests').disabled() if not get_option('tests').disabled() and gst_check_dep.found()
subdir('check') subdir('check')
endif endif
if not get_option('examples').disabled() if not get_option('examples').disabled()