Fix build of external plugins

They refer to targets with the QtCreator:: prefix, but the dependency
information that we add as a custom property does not have that. So we
need to add the prefix if needed.

Change-Id: Ib202865a56f6530b8ae5973f635a81f53fcb4219
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Eike Ziller
2024-09-04 11:30:14 +02:00
parent f67972f7b5
commit 452d65b727

View File

@@ -363,10 +363,18 @@ function(find_dependent_plugins varName)
if(NOT TARGET ${i}) if(NOT TARGET ${i})
continue() continue()
endif() endif()
set(_dep) set(_deps)
get_property(_dep TARGET "${i}" PROPERTY QTC_PLUGIN_DEPENDS) get_property(_deps TARGET "${i}" PROPERTY QTC_PLUGIN_DEPENDS)
if (_dep) if (_deps)
find_dependent_plugins(_REC ${_dep}) set(_fixed_deps "")
foreach(_dep ${_deps})
if(NOT TARGET ${_dep} AND TARGET "QtCreator::${_dep}")
list(APPEND _fixed_deps "QtCreator::${_dep}")
else()
list(APPEND _fixed_deps ${_dep})
endif()
endforeach()
find_dependent_plugins(_REC ${_fixed_deps})
list(APPEND _RESULT ${_REC}) list(APPEND _RESULT ${_REC})
endif() endif()
endforeach() endforeach()