mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-21 22:16:24 +00:00
fix
This commit is contained in:
@@ -56,6 +56,11 @@ elseif(USE_REGEX STREQUAL "builtin")
|
|||||||
add_feature_info("Regular expressions" ON "using bundled implementation")
|
add_feature_info("Regular expressions" ON "using bundled implementation")
|
||||||
set(GIT_REGEX_BUILTIN 1)
|
set(GIT_REGEX_BUILTIN 1)
|
||||||
|
|
||||||
|
add_definitions(-DPCRE2_STATIC)
|
||||||
|
add_definitions(-DPCRE2_EXPORT=)
|
||||||
|
add_definitions(-DPCRE2_EXP_DECL=)
|
||||||
|
add_definitions(-DPCRE2_EXP_DEFN=)
|
||||||
|
|
||||||
add_subdirectory("${PROJECT_SOURCE_DIR}/deps/pcre2" "${PROJECT_BINARY_DIR}/deps/pcre2")
|
add_subdirectory("${PROJECT_SOURCE_DIR}/deps/pcre2" "${PROJECT_BINARY_DIR}/deps/pcre2")
|
||||||
list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/pcre2")
|
list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/pcre2")
|
||||||
list(APPEND LIBGIT2_DEPENDENCY_OBJECTS $<TARGET_OBJECTS:pcre2>)
|
list(APPEND LIBGIT2_DEPENDENCY_OBJECTS $<TARGET_OBJECTS:pcre2>)
|
||||||
|
|||||||
Reference in New Issue
Block a user