patrislav1 / cubemx.cmake

Script collection to build CubeMX projects with CMake and debug them with VSCode
The Unlicense
34 stars 10 forks source link

Allow compiler path auto-detection to be overridden #6

Closed BenBE closed 2 years ago

BenBE commented 2 years ago

Set ARMGCC_TOOLCHAIN_PATH before including arm-gcc.cmake as CMAKE_TOOLCHAIN_FILE to override:

set(ARMGCC_TOOLCHAIN_PATH /opt/gcc-arm-none-eabi-custom)
set(CMAKE_TOOLCHAIN_FILE cubemx.cmake/arm-gcc.cmake)