meson: Fix linking libexpat on darwin
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
d863f67789
commit
1bc38359d1
10
meson.build
10
meson.build
|
@ -33,8 +33,14 @@ if not freetype_dep.found()
|
||||||
fallback: ['freetype2', 'freetype_dep'])
|
fallback: ['freetype2', 'freetype_dep'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
expat_dep = dependency('expat',
|
# Linking expat should not be so difficult... see: https://github.com/mesonbuild/meson/issues/10516
|
||||||
fallback: ['expat', 'expat_dep'])
|
expat_dep = dependency('expat', required: false)
|
||||||
|
if not expat_dep.found()
|
||||||
|
expat_dep = cc.find_library('expat', required : false)
|
||||||
|
if not expat_dep.found()
|
||||||
|
expat_dep = dependency('expat', method: 'system', fallback: ['expat', 'expat_dep'])
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
pkgmod = import('pkgconfig')
|
pkgmod = import('pkgconfig')
|
||||||
|
|
Loading…
Reference in New Issue