Skip to content

Commit c6377b3

Browse files
pillo79tejlmand
authored andcommitted
[nrf fromtree] 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 <[email protected]> (cherry picked from commit 8e66848)
1 parent 1ee5fdf commit c6377b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmake/modules/yaml.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,7 @@ function(yaml_save)
476476
set_property(TARGET ${save_target} PROPERTY json_file ${json_file})
477477

478478
# comment this to keep the temporary JSON files
479-
get_property(temp_files TARGET ${save_target} PROPERTY temp_files)
480-
list(APPEND temp_files ${json_file})
481-
set_property(TARGET ${save_target} PROPERTY temp_files ${temp_files})
479+
set_property(TARGET ${save_target} APPEND PROPERTY temp_files ${json_file})
482480

483481
FILE(GENERATE OUTPUT ${json_file}
484482
CONTENT "${json_content}"

0 commit comments

Comments
 (0)