From e7d7eded4ce64896d98dbc92ac1c1f21aae52b06 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 13 Mar 2024 15:05:24 +0100 Subject: [PATCH] Fix the condition for creating of the plugin init target aliases Make sure that plugin_init_target is not empty. It's empty when creating qml plugins. Amends 566b726b8400d473861a62b4b9de87d1f0958d6d Pick-to: 6.7 Change-Id: If23998d50d8d31e20b3966730afb8b4b46b9990c Reviewed-by: Alexandru Croitor Reviewed-by: Alexey Edelev --- cmake/QtPluginHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake index a34bcfda1bc..dbda32c6c53 100644 --- a/cmake/QtPluginHelpers.cmake +++ b/cmake/QtPluginHelpers.cmake @@ -92,7 +92,7 @@ function(qt_internal_add_plugin target) qt_internal_mark_as_internal_library(${target}) get_target_property(target_type "${target}" TYPE) - if(target_type STREQUAL STATIC_LIBRARY) + if(plugin_init_target AND TARGET "${plugin_init_target}") qt_internal_add_target_aliases("${plugin_init_target}") endif()