mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08: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:
@@ -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()
|
||||
|
||||
# ~~~
|
||||
|
||||
Reference in New Issue
Block a user