meson: exclude pcre2 when dependencies are skipped

This commit is contained in:
Evgeny Vereshchagin 2022-05-29 06:44:45 +00:00
parent 003a676161
commit 8739f309f3

View file

@ -1497,7 +1497,7 @@ endif
conf.set10('HAVE_XKBCOMMON', have)
want_pcre2 = get_option('pcre2')
if want_pcre2 != 'false'
if want_pcre2 != 'false' and not skip_deps
libpcre2 = dependency('libpcre2-8',
required : want_pcre2 == 'true')
have = libpcre2.found()