Without this change, calling `find_package(gRPC REQUIRED)` errors out
with
CMake Error at /opt/homebrew/lib/cmake/grpc/gRPCConfig.cmake:8
(find_dependency):
Unknown CMake command "find_dependency".
The issue is that `find_dependency` is provided by the
`CMakeFindDependencyMacro` module[^1], so we need to `include` it before
use.
[^1]:
https://cmake.org/cmake/help/v3.26/module/CMakeFindDependencyMacro.html
|
||
|---|---|---|
| .. | ||
| modules | ||
| OWNERS | ||
| abseil-cpp.cmake | ||
| address_sorting.cmake | ||
| benchmark.cmake | ||
| cares.cmake | ||
| ccache.cmake | ||
| download_archive.cmake | ||
| gRPCConfig.cmake.in | ||
| msvc_static_runtime.cmake | ||
| pkg-config-template.pc.in | ||
| protobuf.cmake | ||
| re2.cmake | ||
| ssl.cmake | ||
| systemd.cmake | ||
| upb.cmake | ||
| xxhash.cmake | ||
| zlib.cmake | ||