Commit 64a78a80 by Etienne Samson

mbedtls: don't require mbedtls from our pkgconfig file

mbedTLS has no pkgconfig file, hence we can't require it. For now, pass its link flags as our own.
parent f9cf9a04
...@@ -232,8 +232,10 @@ IF (USE_HTTPS) ...@@ -232,8 +232,10 @@ IF (USE_HTTPS)
SET(GIT_MBEDTLS 1) SET(GIT_MBEDTLS 1)
LIST(APPEND LIBGIT2_INCLUDES ${MBEDTLS_INCLUDE_DIR}) LIST(APPEND LIBGIT2_INCLUDES ${MBEDTLS_INCLUDE_DIR})
LIST(APPEND LIBGIT2_LIBS ${MBEDTLS_LIBRARIES}) LIST(APPEND LIBGIT2_LIBS ${MBEDTLS_LIBRARIES})
LIST(APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LDFLAGS}) # mbedTLS has no pkgconfig file, hence we can't require it
LIST(APPEND LIBGIT2_PC_REQUIRES "mbedtls") # https://github.com/ARMmbed/mbedtls/issues/228
# For now, pass its link flags as our own
LIST(APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LIBRARIES})
ELSEIF (HTTPS_BACKEND STREQUAL "WinHTTP") ELSEIF (HTTPS_BACKEND STREQUAL "WinHTTP")
# WinHTTP setup was handled in the WinHTTP-specific block above # WinHTTP setup was handled in the WinHTTP-specific block above
ELSE() ELSE()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment