From 9968b84cf79a41f54ec82d224f6814866d6678d7 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 16 Aug 2024 14:20:02 +0200 Subject: [PATCH] CMake: Make grpc chat example build as external project with qemu CI Make sure to look for the ProtobufTools and GrpcTools packages explicitly, for the grpc 'chat' example, to ensure the public CMake API is available when the example is built as an external project. The Tools packages are not looked up automatically because the target sysroot is missing protobuf tools dependencies, and thus we never record a dependency from the target library packages to the tools packages. Augments 68b2e1db08a8e85cac102499751e36a7a2666034 Adapts to 63b9cc81df95a16070c2a475296774a294019170 Pick-to: 6.8 Task-number: QTBUG-90820 Task-number: QTBUG-96232 Task-number: QTBUG-110849 Change-Id: I036a37e0fb9c81de325a33ab6ae7322d14ae0cbc Reviewed-by: Alexey Edelev --- examples/grpc/chat/client/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/grpc/chat/client/CMakeLists.txt b/examples/grpc/chat/client/CMakeLists.txt index 5b071dec..599c2a5a 100644 --- a/examples/grpc/chat/client/CMakeLists.txt +++ b/examples/grpc/chat/client/CMakeLists.txt @@ -10,7 +10,7 @@ endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/grpc/chat") -find_package(Qt6 REQUIRED COMPONENTS Core Protobuf Grpc Quick) +find_package(Qt6 REQUIRED COMPONENTS Core Protobuf ProtobufTools Grpc GrpcTools Quick) qt_standard_project_setup()