a9183756-gh / Arduino-CMake-Toolchain

CMake toolchain for all Arduino compatible boards
MIT License
137 stars 40 forks source link

Prebuild command not execuded before cmake compiler check. #46

Closed Chuvi-w closed 3 years ago

Chuvi-w commented 3 years ago

I've tryed to use this toolchain with stm32duino.

I received an error, looking like this:

/sketch/build_opt.h: No such file or directory

asciicast

File build_opt.h should be created here

Script prebuild.sh should be executed from here. Note, that there is variant for Windows.

I've found no recipe.hooks.prebuild variant in ArduinoIDE Platform Specification, but in ArduinoIDE it works normally

Chuvi-w commented 3 years ago

Fixed in #44 Thanks to @gibwar