cmake: add zephyr_cc_option_nocheck

Support adding options without checking them with the compiler. In some
cases the simple check routine fails due to missing symbols.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-11-28 15:49:14 -05:00 committed by Anas Nashif
commit a01f2de734

View file

@ -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()