Fix creation of ModuleDepends header file with correct dependencies
The content of the generated header files should reference both public and private Qt module dependencies. This is the same as what qmake does. Change-Id: I2e47c93291d677b86af7bb80fb788b2acf939743 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Qt CMake Build Bot
This commit is contained in:
parent
bb2d1f8119
commit
d9070833d5
@ -72,7 +72,9 @@ function(qt_internal_create_module_depends_file target)
|
||||
set(main_module_tool_deps "")
|
||||
|
||||
qt_internal_get_qt_all_known_modules(known_modules)
|
||||
foreach (dep ${depends})
|
||||
|
||||
set(all_depends ${depends} ${public_depends})
|
||||
foreach (dep ${all_depends})
|
||||
# Normalize module by stripping leading "Qt::" and trailing "Private"
|
||||
if (dep MATCHES "Qt::(.*)")
|
||||
set(dep "${CMAKE_MATCH_1}")
|
||||
|
Loading…
Reference in New Issue
Block a user