Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
77fd31176 (dev), a600e1c50 (6.9), a8ca2982a (6.8)
Description
qt_add_protobuf and qt_add_grpc are designed to work with .proto files which contains the respective definitions of either protobuf messages or gRPC services. Currently they fail with really annoying errors in case if the only .proto file that is provided to the qt_add_protobuf/qt_add_grpc call lacks the required definitions:
Qt/6.8.1/gcc_64/lib/cmake/Qt6ProtobufTools/Qt6ProtobufToolsMacros.cmake:76 (message): PROTO_FILES list is empty.
We should prevent this situation and print the adequate warning regarding the missing definitions in .proto files and allow to bypass this.
Attachments
For Gerrit Dashboard: QTBUG-132848 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
617615,6 | Add the early return from qt6_add_<protobuf|grpc> | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
620869,2 | Add the early return from qt6_add_<protobuf|grpc> | 6.9 | qt/qtgrpc | Status: MERGED | +2 | 0 |
620980,4 | Add the early return from qt6_add_<protobuf|grpc> | 6.8 | qt/qtgrpc | Status: MERGED | +2 | 0 |