CMake/preprocess: fix typo PREPROCES -> PREPROCESS

correct the marco define from PREPROCES to PREPROCESS

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-10-29 15:50:31 +08:00
committed by Xiang Xiao
parent 17bca89f07
commit e3689cbb2f
4 changed files with 14 additions and 14 deletions

View File

@@ -101,7 +101,7 @@ function(nuttx_add_romfs)
if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${rcpath})
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${rcpath})
endif()
nuttx_generate_preproces_target(
nuttx_generate_preprocess_target(
SOURCE_FILE ${SOURCE_ETC_PREFIX}/${SOURCE_ETC_SUFFIX} TARGET_FILE
${CMAKE_CURRENT_BINARY_DIR}/${SOURCE_ETC_SUFFIX} DEPENDS nuttx_context)
list(APPEND DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${SOURCE_ETC_SUFFIX})

View File

@@ -37,14 +37,14 @@ if(EXTRA_FLAGS)
endif()
# ~~~
# nuttx_generate_preproces_target
# nuttx_generate_preprocess_target
#
# Description:
# because different toolchains have different preprocessing instructions,
# we define the COMMON preprocessing target here.
#
# Prototype:
# nuttx_generate_preproces_target(
# nuttx_generate_preprocess_target(
# SOURCE_FILE
# ${single_source_file}
# TARGET_FILE
@@ -54,14 +54,14 @@ endif()
# ~~~
#
if(NOT NUTTX_TOOLCHAIN_PREPROCES_DEFINED)
function(nuttx_generate_preproces_target)
if(NOT NUTTX_TOOLCHAIN_PREPROCESS_DEFINED)
function(nuttx_generate_preprocess_target)
# parse arguments into variables
nuttx_parse_function_args(
FUNC
nuttx_generate_preproces_target
nuttx_generate_preprocess_target
ONE_VALUE
SOURCE_FILE
TARGET_FILE