From 173f163ad21835c9cf514f601b72034777ff1b19 Mon Sep 17 00:00:00 2001 From: Li Xinwei <1326710505@qq.com> Date: Wed, 30 Dec 2020 02:02:13 +0800 Subject: 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 --- src/plugins/sqldrivers/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins/sqldrivers') 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 -- cgit v1.2.3