File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,15 @@ if(CONFIG_SYSTEM_FLATBUFFERS)
33
33
flatbuffers_fetch
34
34
URL ${FLATBUFFERS_URL} SOURCE_DIR ${FLATBUFFERS_DIR} BINARY_DIR
35
35
${CMAKE_BINARY_DIR} /apps/math/flatbuffers/flatbuffers
36
+ PATCH_COMMAND patch -d ${FLATBUFFERS_DIR} -p1 <
37
+ ${CMAKE_CURRENT_LIST_DIR} /flatbuffers.patch
36
38
DOWNLOAD_NO_PROGRESS true
37
39
TIMEOUT 30 )
38
40
39
41
FetchContent_GetProperties (flatbuffers_fetch )
40
42
41
43
if (NOT flatbuffers_fetch_POPULATED )
42
44
FetchContent_Populate (flatbuffers_fetch )
43
-
44
- # Apply the patch after fetching the content
45
- execute_process (
46
- COMMAND ${CMAKE_COMMAND} -E echo "Applying patch to flatbuffers"
47
- WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} )
48
-
49
- execute_process (COMMAND patch -d ${FLATBUFFERS_DIR} -p1 <
50
- ${CMAKE_CURRENT_LIST_DIR} /flatbuffers.patch )
51
45
endif ()
52
46
endif ()
53
47
You can’t perform that action at this time.
0 commit comments