GrpcToolsMacros.cmake: continue on invalid files

Previously the helper returned early in case no service section was
found in the proto file. If we supply multiple files, this function
should simply skip those. Otherwise it's not possible to process such a
list variable.

Pick-to: 6.10 6.9 6.8
Change-Id: Iab31fa81404f2df2ec4ad628810ff7f948b3eb5f
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Dennis Oberst 2025-08-22 15:21:28 +02:00
parent 49c5c7d82c
commit bfa2607a72
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ function(_qt_internal_grpc_preparse_proto_files type
_qt_internal_preparse_proto_file_common(result proto_package "${f}" "service")
if(NOT result)
message(NOTICE "No services found in ${f}. Skipping.")
return()
continue()
endif()
get_filename_component(proto_file_base_dir "${f}" DIRECTORY)