[all-commits] [llvm/llvm-project] 20d5a8: [CMake] Fix `FindGRPC.cmake` for setting up gRPC r...

Argyrios Kyrtzidis via All-commits all-commits at lists.llvm.org
Wed Jun 15 16:11:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20d5a8613423ffe7e773c100169384ef38a68e7b
      https://github.com/llvm/llvm-project/commit/20d5a8613423ffe7e773c100169384ef38a68e7b
  Author: Argyrios Kyrtzidis <kyrtzidis at apple.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M llvm/cmake/modules/FindGRPC.cmake

  Log Message:
  -----------
  [CMake] Fix `FindGRPC.cmake` for setting up gRPC related libraries for macOS+homebrew context

* Switch `$GRPC_OPTS` references to `${GRPC_OPTS}`
* Use `target_include_directories()` to add include search paths only for the targets the depend on `gRPC`
* Also find and include the search path for `abseil` headers (`gRPC` headers include them)
* Only setup the gRPC related targets once, so that `include(FindGRPC)` can be called from multiple tools

Differential Revision: https://reviews.llvm.org/D127893




More information about the All-commits mailing list