-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] protobuf/any: access to protobuf_generate_cpp function #1956
Comments
It should be fixed by #1179 Please, follow that PR. |
#1179 is better. nice work
make command without virtualrunenv generator:
|
I have the same problem. I tried to figure out why the recipe
It appears that is adding the recipe If I try to run the
That error indicates that it found an old 2.x The
Possibly that FIXME is the issue? |
I posted a stupid simple repo that replicates the problem for me: https://github.com/dheater/conan-protobuf-example As @sourcedelica alludes to,
I can make the project work if I modify
Suggestions? |
I created a branch called |
I was able to build the conan-protobuf-example repo on macos by changing the ARGS line to As a sidenote, I wonder what the reasoning is for not exporting bin dirs in the cmake_find_package generators? I'm trying to integrate > 50 packages right now and I find myself wanting that more and more... |
Works brilliantly for me @rockdreamer ! I submitted a PR. |
I'm finding out that this works fine if the only dependency is protobuf. If you add something else, like ninja in build_dependencies, CONAN_BIN_DIRS is split with ; instead of : on linux, making the path setting useless. |
We could use CMake's SHELL_PATH generator expression, but it's for CMake > 3.4 only. |
Replacing |
Yes, that should work, with a static zlib :) |
Hi there! Happy coding 🐸 |
Current good practice is to use cmake_find_package generator.
on an other hand, i want conan to be as discreet as possible in my CMakelists.txt.
So this generator can be very helpful when no standard "Find<Package_name>.cmake exists.
For the protobuf library case, this generator hide a very important feature : the protobuf_generate_cpp function. And as a user cmake_find_package seem broken!
As a conan developer, i understand the fact that cmake guys should separate "target detection" and function utilities.
but cmake is a giant.... conan is not...yet.
furthermore, protobuf test_package is so sad ... download a binary (not built by conan!!!) and reinvent the wheel to generate cpp file.
Do u have a plan for this kind or issue?
Thx.
Package and Environment Details (include every applicable attribute)
Conan profile
Steps to reproduce (Include if Applicable)
conanfile.txt
CMakefiles.txt
The text was updated successfully, but these errors were encountered: