Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36ae5c9

Browse files
authored
Merge pull request #4656 from tiennou/fix/mbedtls-no-pkgconfig
mbedtls: don't require mbedtls from our pkgconfig file
2 parents 7f6c1ce + 64a78a8 commit 36ae5c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ IF (USE_HTTPS)
232232
SET(GIT_MBEDTLS 1)
233233
LIST(APPEND LIBGIT2_INCLUDES ${MBEDTLS_INCLUDE_DIR})
234234
LIST(APPEND LIBGIT2_LIBS ${MBEDTLS_LIBRARIES})
235-
LIST(APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LDFLAGS})
236-
LIST(APPEND LIBGIT2_PC_REQUIRES "mbedtls")
235+
# mbedTLS has no pkgconfig file, hence we can't require it
236+
# https://github.com/ARMmbed/mbedtls/issues/228
237+
# For now, pass its link flags as our own
238+
LIST(APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LIBRARIES})
237239
ELSEIF (HTTPS_BACKEND STREQUAL "WinHTTP")
238240
# WinHTTP setup was handled in the WinHTTP-specific block above
239241
ELSE()

0 commit comments

Comments
 (0)