[libgit2] Add GIT_OPENSSL OPTION to fix setting certificate location fail (#31392)

* [libgit2] defined GIT_OPENSSL option

* update version

* update version

* update version

* update portfile.cmake

* update version

* remove unix restrictions

* update version
This commit is contained in:
JonLiu1993 2023-05-16 04:54:54 +08:00 committed by GitHub
parent 0f63ba5458
commit e8a229a233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View File

@ -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()

View File

@ -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",

View File

@ -4034,7 +4034,7 @@
},
"libgit2": {
"baseline": "1.4.2",
"port-version": 2
"port-version": 3
},
"libgme": {
"baseline": "0.6.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7c2173f86743e6e3c6759d5c781f236c08adbec4",
"version-semver": "1.4.2",
"port-version": 3
},
{
"git-tree": "d5c636f8eb77d7d68c2a4b41fcd7d68759fb9ad0",
"version-semver": "1.4.2",