diff --git a/src/meson.build b/src/meson.build index a8a1d2ba..42450efa 100644 --- a/src/meson.build +++ b/src/meson.build @@ -29,7 +29,12 @@ wayland_util_dep = declare_dependency( if get_option('scanner') # wayland-scanner - scanner_deps = [ dependency('expat') ] + if host_machine.system() == 'darwin' + scanner_deps = [ cc.find_library('expat') ] + else + scanner_deps = [ dependency('expat') ] + endif + scanner_args = [ '-include', 'config.h' ] if get_option('dtd_validation')