]> git.ipfire.org Git - thirdparty/git.git/commit
cmake: add pcre2 support
authorYuyi Wang <Strawberry_Str@hotmail.com>
Tue, 24 May 2022 06:38:48 +0000 (06:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 May 2022 23:05:21 +0000 (16:05 -0700)
commit80431510a2b97e08bd577f39934e2b5ea9a43034
treed575e10ff69887402f4bb404a10b109b4ce2af6b
parenta561962479cc2c1063babeeaf0e6491fd4b8b2e8
cmake: add pcre2 support

Fix one of the TODOs listed in the CMakeLists.txt by adding support
for building with pcre2.

As pcre2 doesn't provide cmake find module, we find it with pkgconf.
This patch also works with vcpkg on Windows, with pkgconf and pcre2
installed.

Pkgconf and pcre2 is detected automatically just like curl, expat
and iconv. The output of CMake indicates whether pcre2 is found.

Signed-off-by: Yuyi Wang <Strawberry_Str@hotmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/CMakeLists.txt