fix(build): Correct the usage example for idf_build_replace_option_from_property

This commit is contained in:
david zuhn
2026-01-27 12:42:53 -06:00
parent f621cc4fff
commit d25272d0de
+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})