diff --git a/ports/libgit2/portfile.cmake b/ports/libgit2/portfile.cmake index 626f6385ca..66e488c4e4 100644 --- a/ports/libgit2/portfile.cmake +++ b/ports/libgit2/portfile.cmake @@ -29,6 +29,10 @@ function(set_tls_backend VALUE) set(USE_HTTPS ${VALUE} PARENT_SCOPE) endfunction() +if("openssl" IN_LIST FEATURES) + list(APPEND GIT_OPTIONS "-DGIT_OPENSSL=1") +endif() + foreach(GIT2_FEATURE ${FEATURES}) if(GIT2_FEATURE STREQUAL "pcre") set_regex_backend("pcre") @@ -64,6 +68,7 @@ vcpkg_cmake_configure( -DREGEX_BACKEND=${REGEX_BACKEND} -DSTATIC_CRT=${STATIC_CRT} ${GIT2_FEATURES} + ${GIT_OPTIONS} ) vcpkg_cmake_install() diff --git a/ports/libgit2/vcpkg.json b/ports/libgit2/vcpkg.json index 4bd677a567..ddb3487815 100644 --- a/ports/libgit2/vcpkg.json +++ b/ports/libgit2/vcpkg.json @@ -1,7 +1,7 @@ { "name": "libgit2", "version-semver": "1.4.2", - "port-version": 2, + "port-version": 3, "description": "Git linkable library", "homepage": "https://github.com/libgit2/libgit2", "supports": "!uwp", diff --git a/versions/baseline.json b/versions/baseline.json index 76307dadb9..020b12662f 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4034,7 +4034,7 @@ }, "libgit2": { "baseline": "1.4.2", - "port-version": 2 + "port-version": 3 }, "libgme": { "baseline": "0.6.3", diff --git a/versions/l-/libgit2.json b/versions/l-/libgit2.json index 89d46278aa..fa214bea8c 100644 --- a/versions/l-/libgit2.json +++ b/versions/l-/libgit2.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "7c2173f86743e6e3c6759d5c781f236c08adbec4", + "version-semver": "1.4.2", + "port-version": 3 + }, { "git-tree": "d5c636f8eb77d7d68c2a4b41fcd7d68759fb9ad0", "version-semver": "1.4.2",