mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
cmake(bugfix):Separate extra flags to avoid parsing errors
cc1: note: unrecognized command-line option '-Wno-cpp -Werror' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-cpp -Werror' may have been intended to silence earlier diagnostics Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
19d6806dbe
commit
82fc9f4151
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ endif()
|
|||
# Support CMake to define additional configuration options
|
||||
|
||||
if(EXTRA_FLAGS)
|
||||
add_compile_options(${EXTRA_FLAGS})
|
||||
separate_arguments(EXTRA_FLAGS_LIST UNIX_COMMAND "${EXTRA_FLAGS}")
|
||||
add_compile_options(${EXTRA_FLAGS_LIST})
|
||||
endif()
|
||||
|
||||
# ~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue