Update the qt_internal_link_internal_platform_for_object_library usage

The function now accepts two arguments, but not one. The second argument
is the main plugin target that the object library belongs to. It's used
to keep the set of flag-controlling properties consistent between
object library and plugin.

Change-Id: I695c613a70e56bf99cf1efabc3288fb720d10e66
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2024-09-10 18:28:34 +02:00
parent d4cbd3006a
commit 90334a0f6c
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ QT_END_NAMESPACE\n")
set(object_library ${target}_protobuf_module_registration) set(object_library ${target}_protobuf_module_registration)
add_library(${object_library} OBJECT ${registration_file}) add_library(${object_library} OBJECT ${registration_file})
qt_internal_link_internal_platform_for_object_library(${object_library}) qt_internal_link_internal_platform_for_object_library(${object_library}
PARENT_TARGET ${target})
_qt_internal_copy_dependency_properties(${object_library} _qt_internal_copy_dependency_properties(${object_library}
${target} PRIVATE_ONLY) ${target} PRIVATE_ONLY)