Skip to content

Commit 564b3ff

Browse files
committed
cmake: add missing requires to the .pc file
1 parent d80d9d5 commit 564b3ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,14 @@ ELSEIF(REGEX_BACKEND STREQUAL "pcre2")
140140

141141
LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${PCRE2_INCLUDE_DIRS})
142142
LIST(APPEND LIBGIT2_LIBS ${PCRE2_LIBRARIES})
143+
LIST(APPEND LIBGIT2_PC_REQUIRES "libpcre2")
143144
ELSEIF(REGEX_BACKEND STREQUAL "pcre")
144145
ADD_FEATURE_INFO(regex ON "using system PCRE")
145146
SET(GIT_REGEX_PCRE 1)
146147

147148
LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${PCRE_INCLUDE_DIRS})
148149
LIST(APPEND LIBGIT2_LIBS ${PCRE_LIBRARIES})
150+
LIST(APPEND LIBGIT2_PC_REQUIRES "libpcre")
149151
ELSEIF(REGEX_BACKEND STREQUAL "regcomp")
150152
ADD_FEATURE_INFO(regex ON "using system regcomp")
151153
SET(GIT_REGEX_REGCOMP 1)

0 commit comments

Comments
 (0)