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

Library name difference between conan hosted package and provided by CMake #951

Open
pblxptr opened this issue Oct 1, 2022 · 2 comments

Comments

@pblxptr
Copy link

pblxptr commented Oct 1, 2022

Hello, I'm using mqtt_cpp in my project. While developing I've been using it through conan package which is here: https://conan.io/center/redboltz-mqtt_cpp

but when I deliver the whole product to my target I build it using Yocto ecosystem.
In Yocto I've defined a recipe that downloads sources, compiles it, and puts in the rootfs and that's fine.

The problem is that when you look at "Use it" section on conan.io it says, that in order to use this package you have to use:
find_package(mqtt_cpp) and then link to mqtt_cpp::mqtt_cpp

but when you look at the "Usage in cmake project" section on github it says that you should use:
find_package(mqtt_cpp_iface REQUIRED) and link to mqtt_cpp_iface::mqtt_cpp_iface

Do you see the difference in names?

This creates confusion and because of this, depending on which suggestion I use, it makes the other target unable to build.
Why is there such confusion?

@redboltz
Copy link
Owner

redboltz commented Oct 1, 2022

Thank you for reporting the issue.
I don't know much about Yocto and conan.
Maybe some of them need to fix.
If mqtt_cpp needs to something fix, please post a PR to fix it. I would review it.

@malnuts
Copy link

malnuts commented Oct 24, 2022

Thank you for reporting the issue. I don't know much about Yocto and conan. Maybe some of them need to fix. If mqtt_cpp needs to something fix, please post a PR to fix it. I would review it.

Hi,
i couldn't find your email, so leaving this here!
i am doing my final project currently, so i am curious whether you could share the iphone presentation on BoostCon that you did! Would be great if you could!
Of course, i've checked the examples in the library

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

3 participants