mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
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.
This commit is contained in:
parent
c3c8cf1e01
commit
e63af7d006
1 changed files with 2 additions and 1 deletions
|
@ -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_TESTS OFF CACHE BOOL "Build tests")
|
||||||
set(PCRE2_BUILD_PCRE2GREP OFF CACHE BOOL "Build pcre2grep")
|
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.
|
# Look for a system-installed PCRE2.
|
||||||
find_library(SYS_PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
find_library(SYS_PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
||||||
|
@ -49,6 +49,7 @@ else()
|
||||||
GIT_REPOSITORY ${PCRE2_REPO}
|
GIT_REPOSITORY ${PCRE2_REPO}
|
||||||
GIT_TAG "72669190cb947f0cac1d038a8bb1820da59ef447" # tag: pcre2-10.36
|
GIT_TAG "72669190cb947f0cac1d038a8bb1820da59ef447" # tag: pcre2-10.36
|
||||||
GIT_PROGRESS TRUE
|
GIT_PROGRESS TRUE
|
||||||
|
GIT_SHALLOW 1
|
||||||
)
|
)
|
||||||
# Don't try FetchContent_MakeAvailable, there's no way to add EXCLUDE_FROM_ALL
|
# 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.
|
# so we end up installing all of PCRE2 including its headers, man pages, etc.
|
||||||
|
|
Loading…
Reference in a new issue