mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-06 10:05:28 +08:00

This switches to using the CMake FetchContent path to dynamically download and build PCRE2, allowing us to drop the vendored sources. The FISH_USE_SYSTEM_PCRE2 CMake option is kept, but if false it now means fetch-and-build PCRE2 rather than building vendored sources. Note FetchContent was introduced in CMake 3.11. That is now a prerequisite for building fish with FISH_USE_SYSTEM_PCRE2 disabled.