This PR allows executes commands to depend on .bin and .hex files from projects.
The previous implementation assumed every context only has one output file, and had one global set(OUTPUTS ...) array with a single entry per context. This PR replaces this array with per-context set(OUTPUTS_1 ...), set(OUTPUTS_2 ...), ... arrays, and gets the corresponding array with ${OUTPUTS_${N}} for the ExternalProject_Add call.
The resulting change to the generated CMake is thus fairly minimal, while still allowing executes to use .bin and .hex files from projects.
This PR allows executes commands to depend on .bin and .hex files from projects.
The previous implementation assumed every context only has one output file, and had one global
set(OUTPUTS ...)
array with a single entry per context. This PR replaces this array with per-contextset(OUTPUTS_1 ...)
,set(OUTPUTS_2 ...)
, ... arrays, and gets the corresponding array with${OUTPUTS_${N}}
for theExternalProject_Add
call.The resulting change to the generated CMake is thus fairly minimal, while still allowing executes to use
.bin
and.hex
files from projects.Fixes #126