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 566b726b84
Pick-to: 6.7
Change-Id: If23998d50d8d31e20b3966730afb8b4b46b9990c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
bb10
parent
5ea434b09f
commit
e7d7eded4c
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue