a9183756-gh / Arduino-CMake-Toolchain

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

Resolve property as long as possible #53

Open michal-kowalczyk opened 2 years ago

michal-kowalczyk commented 2 years ago

This change repeats resolve property process so that consecutive substitutions are possible. That may be required if the property requires multiple iterations to be resolved. For instance the following property requires 2 iterations: compiler.path={runtime.tools.{build.tarch}-{build.target}-elf-gcc.path}/bin After the first iterations the form requires one more substitution compiler.path={runtime.tools.xtensa-esp32-elf-gcc.path}/bin

markuspi commented 2 years ago

Ran into the same issue while trying to compile a program for ESP32. This PR fixed the problem for me :+1:

fdgonthier commented 2 years ago

I support the merging of this patch as it is require to work with the ESP32 board package and Arduino and CMake.

technyon commented 2 years ago

I support the merging of this patch as it is require to work with the ESP32 board package and Arduino and CMake.

You'll find it merged in my fork:

https://github.com/technyon/Arduino-CMake-Toolchain