From cdd599c8d9a6fe87b35f7b6ad88f8dff0758f534 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Sun, 20 Feb 2022 10:14:53 -0600 Subject: [PATCH] trivial: simplify error message for gidocgen needing introspection --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index d70b92827..7231afa42 100644 --- a/meson.build +++ b/meson.build @@ -600,10 +600,7 @@ elif get_option('docs') == 'docgen' native: true, fallback: ['gi-docgen', 'dummy_dep'], ) - gidocgen = find_program('gi-docgen') - if not get_option('introspection') - error('introspection is needed for docgen') - endif + gidocgen = find_program('gi-docgen', required: get_option('introspection')) endif subdir('libfwupd')