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:
parent
becbe4df3a
commit
af8413af15
@ -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::(.*)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user