Add Qt::Gui to batches unconditionally
This is needed for static plugins to work correctly as currently the only place where plugin logic is handled for non-standalone builds is in qt_internal_add_executable - adding the library later when encountered in one tests that get batched does not trigger plugin handling logic. Fixes: QTBUG-109812 Change-Id: Idcc2bc6b42b2b7ad6afb9796f554b0529de3de5f Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
adb91d6afb
commit
d8d1049ff8
@ -297,6 +297,11 @@ function(qt_internal_add_test_to_batch batch_name name)
|
||||
LIBRARIES ${QT_CMAKE_EXPORT_NAMESPACE}::Core
|
||||
${QT_CMAKE_EXPORT_NAMESPACE}::Test
|
||||
${QT_CMAKE_EXPORT_NAMESPACE}::TestPrivate
|
||||
# Add GUI by default so that the plugins link properly with non-standalone
|
||||
# build of tests. Plugin handling is currently only done in
|
||||
# qt_internal_add_executable if Gui is present. This should be reevaluated with
|
||||
# multiple batches.
|
||||
${QT_CMAKE_EXPORT_NAMESPACE}::Gui
|
||||
)
|
||||
|
||||
set_property(TARGET ${target} PROPERTY _qt_has_exceptions ${arg_EXCEPTIONS})
|
||||
|
Loading…
Reference in New Issue
Block a user