diff --git a/components/ble/ble_flags.cmake b/components/ble/ble_flags.cmake index 4be7e4d4..6b43e04e 100644 --- a/components/ble/ble_flags.cmake +++ b/components/ble/ble_flags.cmake @@ -3,7 +3,7 @@ list(APPEND CFLAGS -DARCH_RISCV) string(TOUPPER ${CHIP} CHIP_NAME) list(APPEND CFLAGS -D${CHIP_NAME}) -if(${CHIP} STREQUAL "bl602") +if("${CHIP}" STREQUAL "bl602") list(APPEND CFLAGS -DCONFIG_SET_TX_PWR) endif() diff --git a/tools/cmake/compiler_flags.cmake b/tools/cmake/compiler_flags.cmake index c1807fbc..36361e11 100644 --- a/tools/cmake/compiler_flags.cmake +++ b/tools/cmake/compiler_flags.cmake @@ -9,7 +9,7 @@ list(APPEND GLOBAL_LD_FLAGS -Wall -Wchar-subscripts -std=c99) list(APPEND GLOBAL_LD_FLAGS --specs=nano.specs) -if(${SUPPORT_FLOAT} STREQUAL "y") +if("${SUPPORT_FLOAT}" STREQUAL "y") list(APPEND GLOBAL_LD_FLAGS -u _printf_float) endif() diff --git a/tools/cmake/tools.cmake b/tools/cmake/tools.cmake index ef07190c..70282400 100644 --- a/tools/cmake/tools.cmake +++ b/tools/cmake/tools.cmake @@ -193,7 +193,7 @@ if(DEFINED APP) foreach(cmakelists_file ${cmakelists_files}) get_filename_component(app_relative_dir ${cmakelists_file} DIRECTORY) get_filename_component(app_name ${app_relative_dir} NAME) - if(${APP} STREQUAL "all") + if("${APP}" STREQUAL "all") message(STATUS "[run app:${app_name}], path:${app_relative_dir}") add_subdirectory(${app_relative_dir}) set(app_find_ok 1)