meson: specify fallback for libgmodule_dep

Fixes build with glib built as a subproject.
This commit is contained in:
Alessandro Decina 2017-07-20 17:49:59 +10:00 committed by Tim-Philipp Müller
parent 79d5b5151b
commit b299f70dcf

View file

@ -127,7 +127,8 @@ foreach option : glconf_options
glconf.set10(option, false)
endforeach
gmodule_dep = dependency('gmodule-no-export-2.0')
gmodule_dep = dependency('gmodule-no-export-2.0',
fallback: ['glib', 'libgmodule_dep'])
unneeded_dep = dependency('', required : false)
if unneeded_dep.found()
error ('Found unfindable dependency')