[all-commits] [llvm/llvm-project] cae765: [CMake] Update FindGPRC to use add_llvm_library

Steven Wu via All-commits all-commits at lists.llvm.org
Mon Aug 15 08:54:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cae76582b07f392659a3c5791eb5f1ba44a1e868
      https://github.com/llvm/llvm-project/commit/cae76582b07f392659a3c5791eb5f1ba44a1e868
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

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

  Log Message:
  -----------
  [CMake] Update FindGPRC to use add_llvm_library

add_clang_library is not available in components other than clang and
clang-tool-extras. Trying to use this module elsewhere will cause cmake
error. `add_clang_library` doesn't seem necessary for clangd's GRPC.
Change it to a more generic `add_llvm_library` so it is easier to build
other downstream projects with GRPC that doesn't depend on clang.

Reviewed By: akyrtzi

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




More information about the All-commits mailing list