From 334bd013d9c27907112df1b51da1431900fe288f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 30 May 2022 11:46:08 -0400 Subject: [PATCH] Skip warning when building as subproject and ragel is missing It is unlikely to be a developer build in that case. --- src/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 831bc9d26..fdbf3c614 100644 --- a/src/meson.build +++ b/src/meson.build @@ -324,7 +324,9 @@ if not has_ragel and get_option('ragel_subproject') has_ragel = true endif if not has_ragel - warning('You have to install ragel if you are going to develop HarfBuzz itself') + if not meson.is_subproject() + warning('You have to install ragel if you are going to develop HarfBuzz itself') + endif else ragel_helper = find_program('gen-ragel-artifacts.py') foreach rl : hb_base_ragel_sources