summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/configure.cmake
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-12 14:34:40 +0100
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-12 14:39:33 +0000
commit11acba6504560dde54e94989b84df94157f9cc00 (patch)
tree66a9bd8bf2d65dcde2b5aa4b5fe877bf88b487ac /src/plugins/sqldrivers/configure.cmake
parentf94fdb35376efb5d2887ecfef67595edff74cbe3 (diff)
cmake: Find and build psql plugin
Change-Id: I8cbc8ab0061f67824d78198cbb926f0625fc7e41 Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/configure.cmake')
-rw-r--r--src/plugins/sqldrivers/configure.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/configure.cmake b/src/plugins/sqldrivers/configure.cmake
index 626a835f0a..8b349a160d 100644
--- a/src/plugins/sqldrivers/configure.cmake
+++ b/src/plugins/sqldrivers/configure.cmake
@@ -6,6 +6,8 @@
#### Libraries
+find_package(PostgreSQL)
+set_package_properties(PostgreSQL PROPERTIES TYPE OPTIONAL)
find_package(SQLite3)
set_package_properties(SQLite3 PROPERTIES TYPE OPTIONAL)
@@ -38,7 +40,7 @@ qt_feature("sql_odbc" PRIVATE
)
qt_feature("sql_psql" PRIVATE
LABEL "PostgreSQL"
- CONDITION libs.psql OR FIXME
+ CONDITION PostgreSQL_FOUND
)
qt_feature("sql_sqlite2" PRIVATE
LABEL "SQLite2"