From: Evgeny Vereshchagin Date: Sun, 29 May 2022 06:44:45 +0000 (+0000) Subject: meson: exclude pcre2 when dependencies are skipped X-Git-Tag: v252-rc1~912^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8739f309f380fc4b9da03cdfa069a624b237fc09;p=thirdparty%2Fsystemd.git meson: exclude pcre2 when dependencies are skipped --- diff --git a/meson.build b/meson.build index f51510c0324..b59c9ec15c1 100644 --- a/meson.build +++ b/meson.build @@ -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()