cmake(feat):support define additional config option for CMake

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-09-12 14:51:19 +08:00 committed by Xiang Xiao
parent 7b807a3947
commit 2a51f4e394
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@
# search. If the manual of the newly supported toolchain is different, you can
# override these methods in the toolchain
# Support CMake to define additional configuration options
if(EXTRA_FLAGS)
add_compile_options(${EXTRA_FLAGS})
endif()
# ~~~
# nuttx_generate_preproces_target
#