mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:51:37 +08:00
link libdl on linux (#11223)
This commit is contained in:
parent
fcdac2dc15
commit
de340a07ea
@ -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/
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user