link libdl on linux (#11223)

This commit is contained in:
mcgoo 2020-05-08 16:50:29 -05:00 committed by GitHub
parent fcdac2dc15
commit de340a07ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -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/

View File

@ -5,4 +5,11 @@ PATHS
"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib"
NO_DEFAULT_PATH
)
_find_package(${ARGS})
_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()