meson: fix build with --libwacom=false
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 4 Jul 2017 23:30:59 +0000 (09:30 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 4 Jul 2017 23:32:49 +0000 (09:32 +1000)
Triggered an error because we still used dep_libwacom unconditionally:
Meson encountered an error in file meson.build, line 76, column 0:
Unknown variable "dep_libwacom".

https://bugs.freedesktop.org/show_bug.cgi?id=101693

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build

index 764e354d7cfa4b4c05ca9540fdec5420e0e7097b..9b0fa2467f2685219e87e34090d50c558c715313 100644 (file)
@@ -62,6 +62,8 @@ if have_libwacom
                          name : 'libwacom_get_paired_device check',
                          dependencies : dep_libwacom)
        config_h.set10('HAVE_LIBWACOM_GET_PAIRED_DEVICE', result)
+else
+       dep_libwacom = declare_dependency()
 endif
 
 ############ udev bits ############