Use CMAKE_TOOLCHAIN_FILE if provided
I have tested this wrapper on cross arm_none_eabi builds with windows. Turns out it failed because conan was ignoring my toolchain file and letting cmake guess compiler arguments which made my cross arm none eabi build fail.
=> Test if the user has set CMAKE_TOOLCHAIN_FILE via CLI or via preset. If this is set pass this to conan
@memsharded I added a test repo. However i'm not familiar with Github Workflows. Could you add the test project to the workflows.
invoke it with
cmake --preset arm_none_eabi_gcc_14_win
cmake --build --preset cmake --preset arm_none_eabi_gcc_14_win_rel
and it should work. i have tested it locally on my windows 11 machine. There is a linux preset as well which should work
hey guys, any further comments on this :) ?