Skip to content
Commit 0f718800 authored by Luca Burelli's avatar Luca Burelli Committed by Benjamin Cabé
Browse files

cmake: yaml: update timestamp on intermediate file save



file(GENERATE ...) does not update the output file if the content is
unchanged. Since the metadata in build_info.yml mostly depends on the
build configuration, the timestamp of the intermediate file does not get
updated on most rebuilds, while the final file does, due to immediate
file(WRITE ...) calls. Since the latter is newer, no post-process step
is executed and the file is left with commented genexes.

Touching the intermediate file ensures that the post-process step is
performed every time, even if the content is unchanged, restoring the
expected behavior.

Signed-off-by: default avatarLuca Burelli <l.burelli@arduino.cc>
parent 6c9e478e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment