diff --git a/cmake/extensions.cmake b/cmake/extensions.cmake index 2cf161f838a..0468d7110aa 100644 --- a/cmake/extensions.cmake +++ b/cmake/extensions.cmake @@ -103,6 +103,12 @@ function(zephyr_cc_option) endforeach() endfunction() +function(zephyr_cc_option_nocheck) + foreach(arg ${ARGV}) + target_compile_options(zephyr_interface INTERFACE ${arg}) + endforeach() +endfunction() + function(zephyr_cc_option_fallback option1 option2) target_cc_option_fallback(zephyr_interface INTERFACE ${option1} ${option2}) endfunction()