How to use aws-iot-device-sdk-cpp-v2 with CPM? #752
mateuszboryn
started this conversation in
General
Replies: 1 comment
-
This is not something that we currently support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, please let me know if somebody used aws-iot-device-sdk-cpp-v2 with CPM? https://github.com/cpm-cmake/CPM.cmake
As I read the docs for aws-iot-device-sdk-cpp-v2 it requires
make install
even before building the samples. The samples assume the lib is already built.What is the best way to invoke CPM, referencing a released version of aws-iot-device-sdk-cpp-v2 and link that to some target in my project?
What I need is fully automatic way of downloading and building aws-iot-device-sdk-cpp-v2 as one of many many dependencies in my project. I don't want to do some manual actions before building my project, like separately downloading aws-iot-device-sdk-cpp-v2 and building it by hand.
I need it to be built similar way to other CPM examples, like this one: https://github.com/cpm-cmake/CPM.cmake/blob/master/examples/boost/CMakeLists.txt#L14
Doing just this
is not enough, because:
What I'm looking for is replacing these 2 lines
https://github.com/aws/aws-iot-device-sdk-cpp-v2/blob/main/samples/fleet_provisioning/mqtt5_fleet_provisioning/CMakeLists.txt#L23-L24
with a reference to outputs of
CPMAddPackage(NAME aws-iot-device-sdk-cpp-v2 ...
mentioned above in this description.Beta Was this translation helpful? Give feedback.
All reactions