Merge integration refs/builds/qtci/dev/1617891528

This commit is contained in:
Qt CI Bot 2021-04-08 19:49:42 +00:00
commit 4e9f6abd62
2 changed files with 7 additions and 6 deletions

View File

@ -212,11 +212,15 @@ function(qt_internal_add_plugin target)
endif()
endif()
add_dependencies(qt_plugins "${target}")
if(TARGET qt_plugins)
add_dependencies(qt_plugins "${target}")
endif()
if(arg_TYPE STREQUAL "platforms")
add_dependencies(qpa_plugins "${target}")
if(TARGET qpa_plugins)
add_dependencies(qpa_plugins "${target}")
endif()
if(_default_plugin)
if(_default_plugin AND TARGET qpa_default_plugins)
add_dependencies(qpa_default_plugins "${target}")
endif()
endif()

View File

@ -16,9 +16,6 @@ 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)
else()
qt_internal_upgrade_cmake_policies()
endif()