From 86b19d87783a4e447d9d39ed35f65fcb5d05bf00 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Wed, 4 Sep 2024 10:23:25 +0200 Subject: data/meson.build: Stop warning from probing for features See MR !31 --- data/meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/data/meson.build b/data/meson.build index d4e3bf4..5881648 100644 --- a/data/meson.build +++ b/data/meson.build @@ -31,11 +31,8 @@ foreach cairomm_mod : ['ft', 'pdf', 'png', 'ps', 'quartz', 'quartz-font', 'quartz-image', 'svg', 'win32', 'win32-font', 'xlib', 'xlib-xrender'] # Install the module only if there is a corresponding cairo module. - if cairo_dep.type_name() == 'pkgconfig' + if cairo_dep.type_name() in ['pkgconfig', 'internal'] do_install = dependency('cairo-' + cairomm_mod, required: false).found() - elif cairo_dep.type_name() == 'internal' - do_install = dependency('cairo-' + cairomm_mod, fallback: 'cairo', - required: false).found() else if cairomm_mod == 'png' do_install = cpp_compiler.has_function('cairo_surface_write_to_png', -- cgit v1.2.3