mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Always use bundled PCRE on Mac
A code-signed fish cannot load a PCRE that is not codesigned, which can easily come about through Homebrew.
This commit is contained in:
parent
b418e36f22
commit
952d9eecf7
@ -7,8 +7,10 @@ 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.21)
|
||||||
FIND_LIBRARY(PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
IF (NOT APPLE)
|
||||||
FIND_PATH(PCRE2_INCLUDE_DIR pcre2.h)
|
FIND_LIBRARY(PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
||||||
|
FIND_PATH(PCRE2_INCLUDE_DIR pcre2.h)
|
||||||
|
ENDIF()
|
||||||
IF (PCRE2_LIB AND PCRE2_INCLUDE_DIR)
|
IF (PCRE2_LIB AND PCRE2_INCLUDE_DIR)
|
||||||
MESSAGE(STATUS "Found system PCRE2 library ${PCRE2_INCLUDE_DIR}")
|
MESSAGE(STATUS "Found system PCRE2 library ${PCRE2_INCLUDE_DIR}")
|
||||||
ELSE()
|
ELSE()
|
||||||
@ -16,5 +18,5 @@ ELSE()
|
|||||||
ADD_SUBDIRECTORY(pcre2-10.34 EXCLUDE_FROM_ALL)
|
ADD_SUBDIRECTORY(pcre2-10.34 EXCLUDE_FROM_ALL)
|
||||||
SET(PCRE2_INCLUDE_DIR ${CMAKE_BINARY_DIR}/pcre2-10.34/)
|
SET(PCRE2_INCLUDE_DIR ${CMAKE_BINARY_DIR}/pcre2-10.34/)
|
||||||
SET(PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
SET(PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
||||||
endif(PCRE2_LIB AND PCRE2_INCLUDE_DIR)
|
ENDIF(PCRE2_LIB AND PCRE2_INCLUDE_DIR)
|
||||||
INCLUDE_DIRECTORIES(${PCRE2_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${PCRE2_INCLUDE_DIR})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user