fix(cmakev2/build): rename FILE to OUTPUT_FILE option for idf_build_generate_metadata

All other functions, such as idf_build_binary, use OUTPUT_FILE. This is
more descriptive and provides more flexibility to add additional
file-related options in the future if necessary. Make
idf_build_generate_metadata consistent with the other function
interfaces by using OUTPUT_FILE.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-11-04 07:48:14 +01:00
parent 6381c4aaf5
commit 1fe1900ddf
2 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -210,9 +210,9 @@ endfunction()
function(test_executable)
idf_build_get_property(build_dir BUILD_DIR)
idf_build_executable(fatfs_example COMPONENTS fatfs_example)
idf_build_generate_metadata(fatfs_example FILE "${build_dir}/project_description_fatfs.json")
idf_build_generate_metadata(fatfs_example OUTPUT_FILE project_description_fatfs.json)
idf_build_executable(hello_world_example COMPONENTS hello_world_example)
idf_build_generate_metadata(hello_world_example FILE "${build_dir}/project_description_hello_world.json")
idf_build_generate_metadata(hello_world_example OUTPUT_FILE project_description_hello_world.json)
endfunction()
# Run tests