Skip to content

CMake can't find target gRPC #53

@heartlocket

Description

@heartlocket

I am new to using CMake and gRPC so please bear with me, but I am encountering an issue when I try to compile:

CMake Error at /Users/adampease/Downloads/api-interfaces/CMakeFiles/CMakeTmp/CMakeLists.txt:22 (target_link_libraries):
  Target "cmTC_9bcdd" links to:

    gRPC::grpc++

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



CMake Error at src/cmake/FindgRPC.cmake:320 (try_run):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:17 (include)

Installed grpc globally with npm, so it should be available, but I am not sure why it is struggling to find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions