mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 20:33:44 +08:00
11 lines
371 B
CMake
11 lines
371 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(FISH_PCRE2_BUILDFLAG "CARGO_FEATURE_STATIC_PCRE2=1")
|
|
endif(FISH_USE_SYSTEM_PCRE2)
|