diff options
| author | hathach <[email protected]> | 2024-06-25 11:31:19 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-06-25 11:31:19 +0700 |
| commit | 4396ecd22cac5485ce006b330ca3ef3446d0022f (patch) | |
| tree | f7c13bcb8bdc0590ee6cf0856d0d432e0264bb6a /hw | |
| parent | f9cd5ccdf0a24b66f6d5b7aeb760e757723eb18e (diff) | |
change COMPILE_DEFINE to CFLAGS_CLI for cmake/make
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/family_support.cmake | 5 | ||||
| -rw-r--r-- | hw/bsp/rp2040/family.cmake | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake index d631c8563..9f2e34691 100644 --- a/hw/bsp/family_support.cmake +++ b/hw/bsp/family_support.cmake @@ -201,9 +201,8 @@ function(family_configure_common TARGET RTOS) ) # compile define from command line - if(DEFINED COMPILE_DEFINE) - #separate_arguments(COMPILE_DEFINE_LIST UNIX_COMMAND "${COMPILE_DEFINE}") - target_compile_definitions(${TARGET} PUBLIC ${COMPILE_DEFINE}) + if(DEFINED CFLAGS_CLI) + target_compile_options(${TARGET} PUBLIC ${CFLAGS_CLI}) endif() target_compile_options(${TARGET} PUBLIC ${WARNING_FLAGS_${CMAKE_C_COMPILER_ID}}) diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index 5d82cbf62..c81390b28 100644 --- a/hw/bsp/rp2040/family.cmake +++ b/hw/bsp/rp2040/family.cmake @@ -176,9 +176,8 @@ function(family_configure_target TARGET RTOS) set(RTOS_SUFFIX ${RTOS_SUFFIX} PARENT_SCOPE) # compile define from command line - if(DEFINED COMPILE_DEFINE) - #separate_arguments(COMPILE_DEFINE_LIST UNIX_COMMAND "${COMPILE_DEFINE}") - target_compile_definitions(${TARGET} PUBLIC ${COMPILE_DEFINE}) + if(DEFINED CFLAGS_CLI) + target_compile_options(${TARGET} PUBLIC ${CFLAGS_CLI}) endif() pico_add_extra_outputs(${TARGET}) |
