Fix header Depends file generation

The script used to write incorrect dependency headers due to not
clearing the qtdeps variable at each loop step.

Change-Id: Icf293be7cea596daa096ab19d390c0bb468a8654
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Alexandru Croitor 2019-03-11 12:32:56 +01:00
parent becbe4df3a
commit af8413af15

View File

@ -16,6 +16,7 @@ function(qt_internal_create_depends_files)
message("Generating depends files for ${KNOWN_QT_MODULES}...")
foreach (target ${KNOWN_QT_MODULES})
get_target_property(depends "${target}" LINK_LIBRARIES)
set(qtdeps "")
foreach (dep ${depends})
# Normalize module by stripping leading "Qt::" and trailing "Private"
if (dep MATCHES "Qt::(.*)")