From 9330c4a9d8415679fa7372513f87f19e21ddef8a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 8 Aug 2018 00:18:45 +0530 Subject: [PATCH] meson: Use internal not-found dependency for dependencies Otherwise when other projects such as gstreamer try to use giounix_dep on Windows with a version check, meson errors out. This is a Meson bug, but this is more correct since the type of the dependency is now the same in all cases and it will take a while for the fix to propagate anyway. See: https://github.com/mesonbuild/meson/pull/3987 --- gio/meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gio/meson.build b/gio/meson.build index 4b2c8f2ca..5987a3f76 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -845,11 +845,10 @@ libgio_dep = declare_dependency(link_with : libgio, include_directories : [configinc, gioinc]) if host_system == 'windows' - # Hack till https://github.com/mesonbuild/meson/issues/2324 is fixed - libgiounix_dep = dependency('', required : false) + libgiounix_dep = declare_dependency() libgiowin32_dep = libgio_dep else - libgiowin32_dep = dependency('', required : false) + libgiowin32_dep = declare_dependency() libgiounix_dep = libgio_dep endif