Fix qt_get_module_for_plugin to work with interface libraries
Assume that interface libraries can't have plugins for now, otherwise we'll need to change the "MODULE_PLUGIN_TYPES" property name to include INTERFACE_ as a prefix. Change-Id: I21b64179ded5fd10216d843a21ee149e002793f3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
ff7101d6c8
commit
486da5a84d
@ -1596,6 +1596,13 @@ endfunction()
|
||||
function(qt_get_module_for_plugin target target_type)
|
||||
qt_internal_get_qt_all_known_modules(known_modules)
|
||||
foreach(qt_module ${known_modules})
|
||||
get_target_property(module_type "${QT_CMAKE_EXPORT_NAMESPACE}::${qt_module}" TYPE)
|
||||
# Assuming interface libraries can't have plugins. Otherwise we'll need to fix the property
|
||||
# name, because the current one would be invalid for interface libraries.
|
||||
if(module_type STREQUAL "INTERFACE_LIBRARY")
|
||||
continue()
|
||||
endif()
|
||||
|
||||
get_target_property(plugin_types
|
||||
"${QT_CMAKE_EXPORT_NAMESPACE}::${qt_module}"
|
||||
MODULE_PLUGIN_TYPES)
|
||||
|
Loading…
Reference in New Issue
Block a user