mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 21:27:51 +08:00
16 lines
509 B
CMake
16 lines
509 B
CMake
# Give the CMake module a little bit of help to find the debug libraries
|
|
find_library(PostgreSQL_LIBRARY_DEBUG
|
|
NAMES pq
|
|
PATHS
|
|
"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
_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()
|