forked from qt-creator/qt-creator
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:
@@ -363,10 +363,18 @@ function(find_dependent_plugins varName)
|
||||
if(NOT TARGET ${i})
|
||||
continue()
|
||||
endif()
|
||||
set(_dep)
|
||||
get_property(_dep TARGET "${i}" PROPERTY QTC_PLUGIN_DEPENDS)
|
||||
if (_dep)
|
||||
find_dependent_plugins(_REC ${_dep})
|
||||
set(_deps)
|
||||
get_property(_deps TARGET "${i}" PROPERTY QTC_PLUGIN_DEPENDS)
|
||||
if (_deps)
|
||||
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})
|
||||
endif()
|
||||
endforeach()
|
||||
|
Reference in New Issue
Block a user