Skip to content

Commit

Permalink
Add PRIVATE_MODULE_INTERFACE to the module dependency set
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
semlanik committed Oct 15, 2021
1 parent f19f729 commit 2b6500c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/QtTargetHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")


Expand Down

0 comments on commit 2b6500c

Please sign in to comment.