summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2020-12-30 02:02:13 +0800
committerLi Xinwei <1326710505@qq.com>2021-01-04 17:58:54 +0800
commit173f163ad21835c9cf514f601b72034777ff1b19 (patch)
tree047fef623f0239bc4076f8e297e91de15e1d1625 /src
parentc30d05e794e49d69cbc981ae2ff21e5713c5a81f (diff)
CMake: Fix error and print summary for standalone building sqldrivers
qt_plugins target is needed by qt_internal_add_plugin function, but when standalone building sqldrivers, this target does not exist, which causes configure error. So we need to add this target manually. Fixes: QTBUG-89714 Pick-to: 6.0 Change-Id: Ia7d613faabb82399c2f3e5771aab24302b3c8f56 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/sqldrivers/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/sqldrivers/CMakeLists.txt b/src/plugins/sqldrivers/CMakeLists.txt
index c47e8eeadc..6c5b49d0e8 100644
--- a/src/plugins/sqldrivers/CMakeLists.txt
+++ b/src/plugins/sqldrivers/CMakeLists.txt
@@ -16,6 +16,9 @@ if (NOT CMAKE_PROJECT_NAME STREQUAL "QtBase" AND NOT CMAKE_PROJECT_NAME STREQUAL
Sql
)
qt_prepare_standalone_project()
+
+ # needed by qt_internal_add_plugin
+ add_custom_target(qt_plugins)
endif()
# Currently handled completely manually.
@@ -69,4 +72,8 @@ endif()
if(QT_FEATURE_sql_ibase)
# TODO add_subdirectory(ibase)
endif()
+
+if(NOT CMAKE_PROJECT_NAME STREQUAL "QtBase" AND NOT CMAKE_PROJECT_NAME STREQUAL "Qt")
+ qt_print_feature_summary()
+endif()
# special case end