From dfeab4c79b7a6dddd34eae5e6705d1ccda1348f1 Mon Sep 17 00:00:00 2001 From: Adam Pigg Date: Fri, 9 Apr 2021 08:31:27 +0100 Subject: [PATCH] Re-order mmglib checking as per suggestion --- meson.build | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 4c7a523..de72a90 100644 --- a/meson.build +++ b/meson.build @@ -47,19 +47,20 @@ eg25_datadir = join_paths(full_datadir, meson.project_name()) add_global_arguments('-D@0@="@1@"'.format('EG25_CONFDIR', eg25_confdir), language : 'c') add_global_arguments('-D@0@="@1@"'.format('EG25_DATADIR', eg25_datadir), language : 'c') +mmglib_dep = dependency('mm-glib', required : false) +if mmglib_dep.found() + add_global_arguments('-DHAVE_MMGLIB=1', language : 'c') +endif + mgr_deps = [ dependency('glib-2.0'), dependency('gio-unix-2.0'), dependency('gudev-1.0'), dependency('libgpiod'), dependency('libusb-1.0'), + mmglib_dep, ] -mmglib_dep = dependency('mm-glib', required : false) -if mmglib_dep.found() - add_global_arguments('-DHAVE_MMGLIB=1', language : 'c') -endif - subdir('data') subdir('src') subdir('udev')