-
Notifications
You must be signed in to change notification settings - Fork 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
[bug] protoc is searched within /usr/bin path #17799
Comments
Thanks for your feedback I have just tried your above files, in my Windows machine with:
So in this case, it seems to be working fine. |
Seems to work well in Linux Ubuntu too:
|
I have also created a |
Thanks for you reply @memsharded (Just for info my OS is Linux openSUSE Tumbleweed) I've done this
And everything went fine I've got But then I've tried to use conan_provider.cmake (downloaded right now) as I usualy do (sorry, forgot to say that I'm using conan_provider.cmake) and bumped to the same error
|
BTW configure command:
|
That is the issue. The So in summary, this is not a bug in Conan, it works as expected. It is a know limitation of |
Oh, understood. But as I can see that only will be problem for |
Yes, that is correct, there is also ongoing work in the incubating Yes, lets close the issue, keep tuned to that ticket and to new releases of the incubating CMakeDeps, this should be solved when it is matured and get out of incubating state. Thanks for the feedback! |
Describe the bug
I have system installed protoc. And while protobuf::libprotobuf is looking for conan provided library protobuf::protoc LOCATION is /usr/bin/protoc
How to reproduce it
Minimal example that produces such problem:
CMakeLists.txt
conanfile.py
I tried to trace the error and in file protobuf-conan-protoc-target.cmake the order to obtain excutable is
I'm not sure but maybe it's enough to
set(PROTOC_PROGRAM ...
. But I don't know how it will affect crosscompilationHere's the log
The text was updated successfully, but these errors were encountered: