Add lookup hints for vcpkg-based gRPC directory layout

vcpkg installs grpc plugins to the <PREFIX>/tools/grpc directory
which doesn't match the expected by CMake layout. Add hints for
this directories when looking for plugins.

Pick-to: 6.5
Change-Id: I8dcdb6a86204284521943b60e8113f5c4efd538d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 9b1d3b862a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2023-10-19 14:28:00 +02:00 committed by Qt Cherry-pick Bot
parent ec8f3a7a81
commit 0d4e553f9a
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ endif()
find_program(__WrapgRPCPlugin_plugin_imported_location
NAMES grpc_cpp_plugin grpc_cpp_plugin.exe
# Support for vcpkg-based directory layout
PATH_SUFFIXES tools/grpc
HINTS "$ENV{gRPC_ROOT}/bin")
set(WrapgRPCPlugin_FOUND FALSE)