diff options
| author | mcgoo <jimmc2@gmail.com> | 2020-05-08 16:50:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-08 14:50:29 -0700 |
| commit | de340a07eae3d21f3e6f8e1a37b2cb3e439009ee (patch) | |
| tree | bfea1539c9857363207396715db4c574d4ef8942 | |
| parent | fcdac2dc15122d30e08cf9c71ae2e0e6b466f1a6 (diff) | |
| download | vcpkg-de340a07eae3d21f3e6f8e1a37b2cb3e439009ee.tar.gz vcpkg-de340a07eae3d21f3e6f8e1a37b2cb3e439009ee.zip | |
link libdl on linux (#11223)
| -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()
|
