mqtt_cpp icon indicating copy to clipboard operation
mqtt_cpp copied to clipboard

Library name difference between conan hosted package and provided by CMake

Open pblxptr opened this issue 2 years ago • 2 comments

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?

pblxptr avatar Oct 01 '22 10:10 pblxptr

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.

redboltz avatar Oct 01 '22 15:10 redboltz

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

malnuts avatar Oct 24 '22 19:10 malnuts