-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] When using system Protobuf, protobuf::protoc is not defined. #2109
Comments
Hi, |
I use the FreeBSD ports framework. cmake/ninja combination fails (cmake/gmake combination also fails). For configuration cmake is run like this:
Failure log: https://people.freebsd.org/~yuri/or-tools-protobuf%3A%3Aprotoc-failure.log I had to apply this patch:
to work around this issue, because cmake doesn't expand |
ok so you are using the freebsd protobuf package. You should try to fix https://github.com/google/or-tools/blob/stable/cmake/FindProtobuf.cmake instead which is currently more in its infancy (i.e. it's a skeleton) as you can see. note: concerning freeBSD hope to have soon a vagrant freebsd12 box to test the CMake build (ed using |
seems fixed on master by: |
protobuf::protoc
gets into makefiles:Version: 7.7
OS: FreeBSD 11.2
The text was updated successfully, but these errors were encountered: