meson: use pkg-config method for libudev
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Nov 2020 11:36:15 +0000 (12:36 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Jan 2021 20:03:36 +0000 (21:03 +0100)
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build

index 022272f4cfb9acc01663fada83fd2d7cb143eb13..0e70fe7a8941512310b37208dbe95008632ba07d 100644 (file)
@@ -403,6 +403,7 @@ endif
 libudev = not_found
 if targetos == 'linux' and (have_system or have_tools)
   libudev = dependency('libudev',
+                       method: 'pkg-config',
                        required: get_option('libudev'),
                        static: enable_static)
 endif