Merge branch 'contrib/github_pr_18174' into 'master'

fix(build): Correct the usage example for function (GitHub PR)

Closes IDFGH-17161

See merge request espressif/esp-idf!45478
This commit is contained in:
Roland Dobai
2026-02-02 11:52:50 +01:00
+2 -2
View File
@@ -75,8 +75,8 @@ endfunction()
# @param[in] new_option the option to replace with (if empty, the old option will be removed)
#
# Example usage:
# idf_build_replace_options_from_property(COMPILE_OPTIONS "-Werror" "-Werror=all")
# idf_build_replace_options_from_property(COMPILE_OPTIONS "-Wno-error=extra" "")
# idf_build_replace_option_from_property(COMPILE_OPTIONS "-Werror" "-Werror=all")
# idf_build_replace_option_from_property(COMPILE_OPTIONS "-Wno-error=extra" "")
#
function(idf_build_replace_option_from_property property_name option_to_remove new_option)
idf_build_get_property(current_list_of_options ${property_name})