Reputation: 25
I'm trying to create a conan recipe that uses a custom toolchain to build a library but I didn't find a relevant example in the conan center recipes.
When building the library in my machine, I use a custom profile that looks like this:
include(default)
[conf]
tools.cmake.cmaketoolchain:user_toolchain+=/home/myself/Arduino-CMake-Toolchain/Arduino-toolchain.cmake
[settings]
arch=armv7
But I'm not sure how I should go about doing this for a recipe that I want to add to conan center.
Is there a way to pass the user_toolchain
programmatically from conanfile.py
?
Am I expected to download the toolchain I need from my conanfile.py
and then point to its relative location?
Upvotes: 0
Views: 73