regex: disambiguate builtin vs system pcre

This commit is contained in:
Edward Thomson
2019-05-18 19:37:59 +01:00
parent c6e48fef43
commit 622166c446
3 changed files with 3 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ ELSEIF(REGEX STREQUAL "regcomp")
SET(GIT_REGEX_REGCOMP 1)
ELSEIF(REGEX STREQUAL "builtin")
ADD_FEATURE_INFO(regex ON "using bundled PCRE")
SET(GIT_REGEX_PCRE 1)
SET(GIT_REGEX_BUILTIN 1)
ADD_SUBDIRECTORY("${libgit2_SOURCE_DIR}/deps/pcre" "${libgit2_BINARY_DIR}/deps/pcre")
LIST(APPEND LIBGIT2_INCLUDES "${libgit2_SOURCE_DIR}/deps/pcre")

View File

@@ -19,6 +19,7 @@
#cmakedefine GIT_REGEX_REGCOMP_L
#cmakedefine GIT_REGEX_REGCOMP
#cmakedefine GIT_REGEX_PCRE
#cmakedefine GIT_REGEX_BUILTIN 1
#cmakedefine GIT_SSH 1
#cmakedefine GIT_SSH_MEMORY_CREDENTIALS 1

View File

@@ -15,7 +15,7 @@
* compatible implementation.
*/
#ifdef GIT_REGEX_PCRE
#ifdef GIT_REGEX_BUILTIN
# include "pcreposix.h"