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 finds wrong PROTOBUFC_INCLUDE_DIR? #168

Open
z0rti opened this issue Feb 17, 2021 · 0 comments
Open

cmake finds wrong PROTOBUFC_INCLUDE_DIR? #168

z0rti opened this issue Feb 17, 2021 · 0 comments

Comments

@z0rti
Copy link

z0rti commented Feb 17, 2021

I'm trying to compile it to be installed to /opt/umurmur
(i compiled and installed libprotobuf + libprotobuf-c there too)

$ pkg-config --cflags libprotobuf-c
-I/opt/umurmur/include

$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/umurmur
[...]
-- Found ProtobufC: /opt/umurmur/include/google/protobuf-c
[...]

so in CMakeCache.txt it sets PROTOBUFC_INCLUDE_DIR:PATH=/opt/umurmur/include/google/protobuf-c
where protobuf-c.h is, so
Mumble.pb-c.h:#include <protobuf-c/protobuf-c.h>
would not find it

Quickfix: add -DPROTOBUFC_INCLUDE_DIR="/opt/umurmur/include/google" to cmake

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

1 participant