From 90334a0f6ceb5c1336aec43ccadd8ed920da4d5d Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 10 Sep 2024 18:28:34 +0200 Subject: [PATCH] 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 --- src/protobuf/Qt6ProtobufBuildInternals.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protobuf/Qt6ProtobufBuildInternals.cmake b/src/protobuf/Qt6ProtobufBuildInternals.cmake index 5a6df7fb..0db23a2e 100644 --- a/src/protobuf/Qt6ProtobufBuildInternals.cmake +++ b/src/protobuf/Qt6ProtobufBuildInternals.cmake @@ -139,7 +139,8 @@ QT_END_NAMESPACE\n") set(object_library ${target}_protobuf_module_registration) 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} ${target} PRIVATE_ONLY)