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>
This commit is contained in:
parent
c30d05e794
commit
173f163ad2
@ -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…
Reference in New Issue
Block a user