[Qt5] Fix libpq linkage in wrapper (#7973)

* PostgreSQL_LIBRARY will contain optimized/debug keywords
which will not work in INTERFACE_LINK_LIBRARIES
This commit is contained in:
Alexander Neumann 2019-08-30 18:41:47 +02:00 committed by Phil Christensen
parent 82a6235770
commit 7dfb48ed5a
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
Source: qt5-base
Version: 5.12.3-3
Version: 5.12.3-4
Homepage: https://www.qt.io/
Description: Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.
Build-Depends: zlib, libjpeg-turbo, libpng, freetype, pcre2, harfbuzz, sqlite3, libpq, double-conversion, openssl

View File

@ -23,11 +23,12 @@ if("${_target_type}" STREQUAL "STATIC_LIBRARY")
set_property(TARGET Qt5::Core APPEND PROPERTY INTERFACE_LINK_LIBRARIES
ZLIB::ZLIB JPEG::JPEG PNG::PNG Freetype::Freetype sqlite3 harfbuzz::harfbuzz
${PostgreSQL_LIBRARY} double-conversion::double-conversion OpenSSL::SSL OpenSSL::Crypto
double-conversion::double-conversion OpenSSL::SSL OpenSSL::Crypto
)
add_qt_library(Qt5::Core
pcre2-16
libpq
Qt5ThemeSupport
Qt5EventDispatcherSupport
Qt5PlatformCompositorSupport