]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: exclude pcre2 when dependencies are skipped
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 29 May 2022 06:44:45 +0000 (06:44 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sun, 29 May 2022 06:44:45 +0000 (06:44 +0000)
meson.build

index f51510c03245fb509bb088d626fa792cf2e1e326..b59c9ec15c1b2bc31de91a71fc26e49305dc62e9 100644 (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()