From e63af7d006e85cd3e6a31060e71e497b239e813b Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sat, 9 Jul 2022 19:57:29 -0700 Subject: [PATCH] PCRE2.cmake: update minimum system PCRE2 version, use GIT_SHALLOW GIT_SHALLOW 1 here improves generation speed and _deps in the build dir like is 6 or 7 MB less according to `du`. Bump the minimum PCRE2 to 10.35 on account of we use PCRE2_SUBSTITUTE_LITERAL. --- cmake/PCRE2.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/PCRE2.cmake b/cmake/PCRE2.cmake index b9138fe2e..497441a29 100644 --- a/cmake/PCRE2.cmake +++ b/cmake/PCRE2.cmake @@ -6,7 +6,7 @@ set(PCRE2_SHOW_REPORT OFF CACHE BOOL "Show the final configuration report") set(PCRE2_BUILD_TESTS OFF CACHE BOOL "Build tests") set(PCRE2_BUILD_PCRE2GREP OFF CACHE BOOL "Build pcre2grep") -set(PCRE2_MIN_VERSION 10.21) +set(PCRE2_MIN_VERSION 10.35) # Look for a system-installed PCRE2. find_library(SYS_PCRE2_LIB pcre2-${PCRE2_WIDTH}) @@ -49,6 +49,7 @@ else() GIT_REPOSITORY ${PCRE2_REPO} GIT_TAG "72669190cb947f0cac1d038a8bb1820da59ef447" # tag: pcre2-10.36 GIT_PROGRESS TRUE + GIT_SHALLOW 1 ) # Don't try FetchContent_MakeAvailable, there's no way to add EXCLUDE_FROM_ALL # so we end up installing all of PCRE2 including its headers, man pages, etc.