Add PRIVATE_MODULE_INTERFACE to the module dependency set
PRIVATE_MODULE_INTERFACE libraries are linked as interface libraries to the module's Private target and exported as the dependencies of package targets. We need to register these modules as public package dependencies to call find_package when resolving module dependencies in user projects. Pick-to: 6.2 Fixes: QTBUG-96558 Change-Id: I4eef550aab306eaf357539ef7a0f76d69873f856 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
f19f729511
commit
2b6500cd15
@ -120,7 +120,7 @@ function(qt_internal_extend_target target)
|
||||
message(AUTHOR_WARNING "${warning_message}")
|
||||
endif()
|
||||
qt_register_target_dependencies("${target}"
|
||||
"${arg_PUBLIC_LIBRARIES}"
|
||||
"${arg_PUBLIC_LIBRARIES};${arg_PRIVATE_MODULE_INTERFACE}"
|
||||
"${qt_libs_private};${arg_LIBRARIES}")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user