mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge remote-tracking branch 'origin/main' into libgit2-httpparser
This commit is contained in:
@@ -55,6 +55,10 @@ if(USE_HTTPS)
|
||||
set(GIT_OPENSSL 1)
|
||||
list(APPEND LIBGIT2_SYSTEM_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
||||
list(APPEND LIBGIT2_SYSTEM_LIBS ${OPENSSL_LIBRARIES})
|
||||
# Static OpenSSL (lib crypto.a) requires libdl, include it explicitly
|
||||
if(LINK_WITH_STATIC_LIBRARIES STREQUAL ON)
|
||||
list(APPEND LIBGIT2_SYSTEM_LIBS ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
list(APPEND LIBGIT2_PC_LIBS ${OPENSSL_LDFLAGS})
|
||||
list(APPEND LIBGIT2_PC_REQUIRES "openssl")
|
||||
elseif(USE_HTTPS STREQUAL "mbedTLS")
|
||||
|
||||
Reference in New Issue
Block a user