mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-29 05:10:49 +00:00
system/flatbuffers: fix patch flow of flatbuffers
Applying patch to flatbuffers patching file '<' Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file '<.rej' patching file '<' Hunk #1 FAILED at 39. 1 out of 1 hunk FAILED -- saving rejects to file '<.rej' patching file '<' Hunk #1 FAILED at 495. 1 out of 1 hunk FAILED -- saving rejects to file '<.rej' patching file '<' Hunk #1 FAILED at 23. 1 out of 1 hunk FAILED -- saving rejects to file '<.rej' patch: **** Can't reopen file '<' : No such file or directory -- Configuring done (12.8s) -- Generating done (0.3s) Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
22d5d1d9d8
commit
bd94b6da1a
1 changed files with 2 additions and 8 deletions
|
|
@ -33,6 +33,8 @@ if(CONFIG_SYSTEM_FLATBUFFERS)
|
|||
flatbuffers_fetch
|
||||
URL ${FLATBUFFERS_URL} SOURCE_DIR ${FLATBUFFERS_DIR} BINARY_DIR
|
||||
${CMAKE_BINARY_DIR}/apps/math/flatbuffers/flatbuffers
|
||||
PATCH_COMMAND patch -d ${FLATBUFFERS_DIR} -p1 <
|
||||
${CMAKE_CURRENT_LIST_DIR}/flatbuffers.patch
|
||||
DOWNLOAD_NO_PROGRESS true
|
||||
TIMEOUT 30)
|
||||
|
||||
|
|
@ -40,14 +42,6 @@ if(CONFIG_SYSTEM_FLATBUFFERS)
|
|||
|
||||
if(NOT flatbuffers_fetch_POPULATED)
|
||||
FetchContent_Populate(flatbuffers_fetch)
|
||||
|
||||
# Apply the patch after fetching the content
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "Applying patch to flatbuffers"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
execute_process(COMMAND patch -d ${FLATBUFFERS_DIR} -p1 <
|
||||
${CMAKE_CURRENT_LIST_DIR}/flatbuffers.patch)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue