cmake: yaml: use APPEND PROPERTY to shorten code
Use a more concise way to append to a list property, as suggested in a previous PR review. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
This commit is contained in:
parent
786cd7fdd8
commit
8e66848418
1 changed files with 1 additions and 3 deletions
|
@ -476,9 +476,7 @@ function(yaml_save)
|
|||
set_property(TARGET ${save_target} PROPERTY json_file ${json_file})
|
||||
|
||||
# comment this to keep the temporary JSON files
|
||||
get_property(temp_files TARGET ${save_target} PROPERTY temp_files)
|
||||
list(APPEND temp_files ${json_file})
|
||||
set_property(TARGET ${save_target} PROPERTY temp_files ${temp_files})
|
||||
set_property(TARGET ${save_target} APPEND PROPERTY temp_files ${json_file})
|
||||
|
||||
FILE(GENERATE OUTPUT ${json_file}
|
||||
CONTENT "${json_content}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue