mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
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:
parent
b0f8b6e2ca
commit
542e2ba625
6 changed files with 10 additions and 10 deletions
|
@ -593,14 +593,14 @@ endif()
|
|||
get_property(ldscript GLOBAL PROPERTY LD_SCRIPT)
|
||||
|
||||
# Pre-compile linker script
|
||||
if(DEFINED PREPROCES)
|
||||
if(DEFINED PREPROCESS)
|
||||
get_filename_component(LD_SCRIPT_NAME ${ldscript} NAME)
|
||||
set(LD_SCRIPT_TMP "${CMAKE_BINARY_DIR}/${LD_SCRIPT_NAME}.tmp")
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${LD_SCRIPT_TMP}
|
||||
DEPENDS ${ldscript}
|
||||
COMMAND ${PREPROCES} -I${CMAKE_BINARY_DIR}/include -I${NUTTX_CHIP_ABS_DIR}
|
||||
COMMAND ${PREPROCESS} -I${CMAKE_BINARY_DIR}/include -I${NUTTX_CHIP_ABS_DIR}
|
||||
${ldscript} > ${LD_SCRIPT_TMP}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
@ -752,14 +752,14 @@ if(CONFIG_BUILD_PROTECTED)
|
|||
|
||||
get_property(user_ldscript GLOBAL PROPERTY LD_SCRIPT_USER)
|
||||
|
||||
if(DEFINED PREPROCES)
|
||||
if(DEFINED PREPROCESS)
|
||||
get_filename_component(LD_SCRIPT_NAME ${user_ldscript} NAME)
|
||||
set(LD_SCRIPT_TMP "${CMAKE_BINARY_DIR}/${LD_SCRIPT_NAME}.tmp")
|
||||
add_custom_command(
|
||||
OUTPUT ${LD_SCRIPT_TMP}
|
||||
DEPENDS ${user_ldscript}
|
||||
COMMAND ${PREPROCES} -I${CMAKE_BINARY_DIR}/include -I${NUTTX_CHIP_ABS_DIR}
|
||||
${user_ldscript} > ${LD_SCRIPT_TMP}
|
||||
COMMAND ${PREPROCESS} -I${CMAKE_BINARY_DIR}/include
|
||||
-I${NUTTX_CHIP_ABS_DIR} ${user_ldscript} > ${LD_SCRIPT_TMP}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_custom_target(user_ldscript_tmp DEPENDS ${LD_SCRIPT_TMP})
|
||||
add_dependencies(nuttx_user user_ldscript_tmp)
|
||||
|
|
|
@ -119,4 +119,4 @@ endif()
|
|||
|
||||
nuttx_add_extra_library(${EXTRA_LIB})
|
||||
|
||||
set(PREPROCES ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
|
|
|
@ -67,4 +67,4 @@ endif()
|
|||
|
||||
nuttx_add_extra_library(${EXTRA_LIB})
|
||||
|
||||
set(PREPROCES ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
|
|
|
@ -72,4 +72,4 @@ endif()
|
|||
|
||||
nuttx_add_extra_library(${EXTRA_LIB})
|
||||
|
||||
set(PREPROCES ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
|
|
|
@ -71,5 +71,5 @@ if(CONFIG_TRICORE_TOOLCHAIN_GNU)
|
|||
|
||||
nuttx_add_extra_library(${EXTRA_LIB})
|
||||
|
||||
set(PREPROCES ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
endif()
|
||||
|
|
|
@ -71,4 +71,4 @@ endif()
|
|||
nuttx_add_extra_library(${EXTRA_LIB})
|
||||
|
||||
separate_arguments(CMAKE_C_FLAG_ARGS NATIVE_COMMAND ${CMAKE_C_FLAGS})
|
||||
set(PREPROCES ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||
|
|
Loading…
Reference in a new issue