[libpq] Fix windows build without openssl (#30650)

This commit is contained in:
Kai Pastor 2023-04-06 01:42:30 +02:00 committed by GitHub
parent a713c5b746
commit 7cda278292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 5 deletions

View File

@ -87,9 +87,11 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
vcpkg_cmake_get_vars(vars_file)
include("${vars_file}")
file(STRINGS "${CURRENT_INSTALLED_DIR}/lib/pkgconfig/openssl.pc" OPENSSL_VERSION REGEX "Version:")
if(OPENSSL_VERSION)
set(ENV{VCPKG_OPENSSL_VERSION} "${OPENSSL_VERSION}")
if("openssl" IN_LIST FEATURES)
file(STRINGS "${CURRENT_INSTALLED_DIR}/lib/pkgconfig/openssl.pc" OPENSSL_VERSION REGEX "Version:")
if(OPENSSL_VERSION)
set(ENV{VCPKG_OPENSSL_VERSION} "${OPENSSL_VERSION}")
endif()
endif()
file(GLOB SOURCE_FILES ${SOURCE_PATH}/*)

View File

@ -1,7 +1,7 @@
{
"name": "libpq",
"version": "15.2",
"port-version": 1,
"port-version": 2,
"description": "The official database access API of postgresql",
"homepage": "https://www.postgresql.org/",
"license": "PostgreSQL",

View File

@ -4342,7 +4342,7 @@
},
"libpq": {
"baseline": "15.2",
"port-version": 1
"port-version": 2
},
"libpqxx": {
"baseline": "7.7.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "29b49eb009f412e692853ca40d353f31711829ea",
"version": "15.2",
"port-version": 2
},
{
"git-tree": "215b5533383016a897deb00d90b9ca5ebefc0469",
"version": "15.2",