Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake can't find target gRPC #53

Open
heartlocket opened this issue Dec 13, 2022 · 1 comment
Open

CMake can't find target gRPC #53

heartlocket opened this issue Dec 13, 2022 · 1 comment

Comments

@heartlocket
Copy link

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.

@reck753
Copy link

reck753 commented Jan 17, 2023

For MacOS, I managed to resolve the same issue by installing grpc with homebrew instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants