meson: add a expat subproject
[mesa.git] / meson.build
index 4be5845f2d6e8f79f6c82a89d8f33cf5c5115568..65afcb4ec605ca8c2b6356585bc203eee15cbda3 100644 (file)
@@ -1158,7 +1158,7 @@ if dep_thread.found() and host_machine.system() != 'windows'
     pre_args += '-DPTHREAD_SETAFFINITY_IN_NP_HEADER'
   endif
 endif
-dep_expat = dependency('expat')
+dep_expat = dependency('expat', fallback : ['expat', 'expat_dep'])
 # this only exists on linux so either this is linux and it will be found, or
 # it's not linux and wont
 dep_m = cc.find_library('m', required : false)