diff options
author | Li Xinwei <1326710505@qq.com> | 2020-12-30 02:02:13 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-04 13:14:44 +0000 |
commit | 2491c4745899f1cf91838cd16a9d88ff97e8a02b (patch) | |
tree | ba20b291f8dacc614244cafa39ab1c96705beaed | |
parent | fc36fadeffe76e2b2ab93aefc5c87b83d0503f97 (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
Change-Id: Ia7d613faabb82399c2f3e5771aab24302b3c8f56
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 173f163ad21835c9cf514f601b72034777ff1b19)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/plugins/sqldrivers/CMakeLists.txt | 7 |
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 |