Use `_qt_internal_set_source_file_generated`

Migrate implementations that set `GENERATED` source property

Task-number: QTBUG-125077
Pick-to: 6.9
Change-Id: Idb0b7e5fe5efe9996ba3a8a097f3da746b131bac
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 8974c1c558)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Cristian Le 2025-06-24 11:34:54 +02:00 committed by Qt Cherry-pick Bot
parent 4c25d16841
commit e6b08e7856
1 changed files with 1 additions and 3 deletions

View File

@ -193,9 +193,7 @@ function(_qt_internal_protoc_generate target generator output_directory)
AUTOGEN_TARGET_DEPENDS "${deps_target}")
set_property(TARGET ${target} APPEND PROPERTY AUTOMOC_MACRO_NAMES "Q_PROTOBUF_OBJECT")
set_property(TARGET ${target} PROPERTY _qt_${generator}_deps_num "${num_deps}")
set_source_files_properties(${generated_files} PROPERTIES
GENERATED TRUE
)
_qt_internal_set_source_file_generated(SOURCES ${generated_files})
get_target_property(proto_files ${target} _qt_internal_proto_files)
if(NOT proto_files)