mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
4e79ec5f0e
The recent update to the rust-pcre2 crate lost the property where a static PCRE2 build could be enabled with a Cargo feature. This means that static PCRE2 builds can no longer be forced. Switch to setting the "PCRE2_SYS_STATIC" variable again, which is how the official rust-pcre2 crate expects to work.
10 lines
345 B
CMake
10 lines
345 B
CMake
set(FISH_USE_SYSTEM_PCRE2 ON CACHE BOOL
|
|
"Try to use PCRE2 from the system, instead of the pcre2-sys version")
|
|
|
|
if(FISH_USE_SYSTEM_PCRE2)
|
|
message(STATUS "Trying to use PCRE2 from the system")
|
|
set(FISH_PCRE2_BUILDFLAG "")
|
|
else()
|
|
message(STATUS "Forcing static build of PCRE2")
|
|
set(ENV{PCRE2_SYS_STATIC} "1")
|
|
endif(FISH_USE_SYSTEM_PCRE2)
|