Commit 8eb1fc36b65a69ca67795cef8ef424a86ae4af68

Edward Thomson 2020-03-06T17:12:18

Merge pull request #5439 from ignatenkobrain/patch-2 Set proper pkg-config dependency for pcre2

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bcc6a01..8ae19a8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -140,7 +140,7 @@ ELSEIF(REGEX_BACKEND STREQUAL "pcre2")
 
 	LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${PCRE2_INCLUDE_DIRS})
 	LIST(APPEND LIBGIT2_LIBS ${PCRE2_LIBRARIES})
-	LIST(APPEND LIBGIT2_PC_REQUIRES "libpcre2")
+	LIST(APPEND LIBGIT2_PC_REQUIRES "libpcre2-8")
 ELSEIF(REGEX_BACKEND STREQUAL "pcre")
 	ADD_FEATURE_INFO(regex ON "using system PCRE")
 	SET(GIT_REGEX_PCRE 1)