fix multiple flag on compiling
This commit is contained in:
@@ -69,6 +69,7 @@ if (DEFINED LOG)
|
||||
endif()
|
||||
|
||||
if(DEFINED CFLAGS_CLI)
|
||||
separate_arguments(CFLAGS_CLI)
|
||||
list(APPEND compile_definitions ${CFLAGS_CLI})
|
||||
endif()
|
||||
|
||||
|
@@ -206,6 +206,7 @@ function(family_configure_common TARGET RTOS)
|
||||
|
||||
# compile define from command line
|
||||
if(DEFINED CFLAGS_CLI)
|
||||
separate_arguments(CFLAGS_CLI)
|
||||
target_compile_options(${TARGET} PUBLIC ${CFLAGS_CLI})
|
||||
endif()
|
||||
|
||||
@@ -291,6 +292,7 @@ function(family_add_tinyusb TARGET OPT_MCU RTOS)
|
||||
|
||||
# compile define from command line
|
||||
if(DEFINED CFLAGS_CLI)
|
||||
separate_arguments(CFLAGS_CLI)
|
||||
target_compile_options(${TARGET}-tinyusb PUBLIC ${CFLAGS_CLI})
|
||||
endif()
|
||||
|
||||
|
@@ -191,6 +191,7 @@ function(family_configure_target TARGET RTOS)
|
||||
|
||||
# compile define from command line
|
||||
if(DEFINED CFLAGS_CLI)
|
||||
separate_arguments(CFLAGS_CLI)
|
||||
target_compile_options(${TARGET} PUBLIC ${CFLAGS_CLI})
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user