diff options
| -rw-r--r-- | ports/libpq/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libpq/vcpkg-cmake-wrapper.cmake | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ports/libpq/CONTROL b/ports/libpq/CONTROL index 8517fda64..477b7da65 100644 --- a/ports/libpq/CONTROL +++ b/ports/libpq/CONTROL @@ -1,5 +1,5 @@ Source: libpq -Version: 12.0-1 +Version: 12.0-2 Build-Depends: libpq[bonjour] (osx) Supports: !uwp Homepage: https://www.postgresql.org/ diff --git a/ports/libpq/vcpkg-cmake-wrapper.cmake b/ports/libpq/vcpkg-cmake-wrapper.cmake index 4ce0f8579..29a81eedd 100644 --- a/ports/libpq/vcpkg-cmake-wrapper.cmake +++ b/ports/libpq/vcpkg-cmake-wrapper.cmake @@ -5,4 +5,11 @@ PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib"
NO_DEFAULT_PATH
)
-_find_package(${ARGS})
\ No newline at end of file +_find_package(${ARGS})
+if(PostgreSQL_FOUND)
+ find_library(PostgreSQL_DL_LIBRARY NAMES dl)
+ if(PostgreSQL_DL_LIBRARY)
+ list(APPEND PostgreSQL_LIBRARIES "dl")
+ set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "dl")
+ endif()
+endif()
|
