Skip warning when building as subproject and ragel is missing

It is unlikely to be a developer build in that case.
This commit is contained in:
Xavier Claessens 2022-05-30 11:46:08 -04:00 committed by Khaled Hosny
parent d11455f285
commit 334bd013d9
1 changed files with 3 additions and 1 deletions

View File

@ -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