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:
parent
faf9599b30
commit
a01f2de734
1 changed files with 6 additions and 0 deletions
|
@ -103,6 +103,12 @@ function(zephyr_cc_option)
|
||||||
endforeach()
|
endforeach()
|
||||||
endfunction()
|
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)
|
function(zephyr_cc_option_fallback option1 option2)
|
||||||
target_cc_option_fallback(zephyr_interface INTERFACE ${option1} ${option2})
|
target_cc_option_fallback(zephyr_interface INTERFACE ${option1} ${option2})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue