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>
This commit is contained in:
parent
fc36fadeff
commit
2491c47458
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user