Mercurial > hg > orthanc-databases
changeset 778:470c5b5c196f
fix
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Sat, 29 Nov 2025 16:09:41 +0100 |
| parents | 565c1cf76b28 |
| children | 6ae96abcc97a |
| files | PostgreSQL/NEWS Resources/CMake/PostgreSQLConfiguration.cmake |
| diffstat | 2 files changed, 16 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/PostgreSQL/NEWS Sat Nov 29 12:40:16 2025 +0100 +++ b/PostgreSQL/NEWS Sat Nov 29 16:09:41 2025 +0100 @@ -31,6 +31,8 @@ * Added a new primary key column in the InvalidChildCounts and GlobalIntegersChanges tables. This new column is required for pg_repack to be able to reclaim space on these tables. +* Upgraded dependencies for static builds (notably on Windows and LSB): + - libpq 13.23 (replacing libpq 13.1) Release 9.0 (2025-08-13)
--- a/Resources/CMake/PostgreSQLConfiguration.cmake Sat Nov 29 12:40:16 2025 +0100 +++ b/Resources/CMake/PostgreSQLConfiguration.cmake Sat Nov 29 16:09:41 2025 +0100 @@ -96,21 +96,22 @@ #endif ") - if (MSVC) - # Older versions of Microsoft Visual Studio (notably MSVC2008) - # don't have inttypes.h. - execute_process( - COMMAND ${PATCH_EXECUTABLE} -p0 -N -i - ${CMAKE_CURRENT_LIST_DIR}/../PostgreSQL/libpq-18.1-msvc.patch - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - RESULT_VARIABLE Failure - ) + if (LIBPQ_MAJOR STREQUAL "18") + if (MSVC) + # Older versions of Microsoft Visual Studio (notably MSVC2008) + # don't have inttypes.h. + execute_process( + COMMAND ${PATCH_EXECUTABLE} -p0 -N -i + ${CMAKE_CURRENT_LIST_DIR}/../PostgreSQL/libpq-18.1-msvc.patch + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + RESULT_VARIABLE Failure + ) - if (Failure) - message(FATAL_ERROR "Error while patching a file") + if (Failure) + message(FATAL_ERROR "Error while patching a file") + endif() + endif() endif() - endif() - endif()
