File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ endif()
15
15
16
16
# The include directory that will contain the generated schema headers.
17
17
set (_program_schema__include_dir "${CMAKE_BINARY_DIR} /schema/include" )
18
-
18
+ set ( _program_schema__output_dir " ${_program_schema__include_dir} /executorch/schema" )
19
19
# Source root directory for executorch.
20
20
if (NOT EXECUTORCH_ROOT )
21
21
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /.. )
@@ -26,16 +26,16 @@ function(generate_program_schema _schema_srcs _schema_name)
26
26
foreach (fbs_file ${_schema_srcs} )
27
27
string (REGEX REPLACE "[.]fbs$" "_generated.h" generated "${fbs_file} " )
28
28
list (APPEND _schema_outputs
29
- "${_program_schema__include_dir} /executorch/schema /${generated} "
29
+ "${_program_schema__output_dir} /${generated} "
30
30
)
31
31
endforeach ()
32
-
32
+
33
33
# Generate the headers from the .fbs files.
34
34
add_custom_command (
35
35
OUTPUT ${_schema_outputs}
36
36
COMMAND
37
37
${FLATC_EXECUTABLE} --cpp --cpp-std c++11 --gen-mutable --scoped-enums -o
38
- "${_program_schema__include_dir} /executorch/schema " ${_schema_srcs}
38
+ "${_program_schema__output_dir} " ${_schema_srcs}
39
39
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
40
40
DEPENDS ${FLATC_EXECUTABLE} ${_schema_srcs}
41
41
COMMENT "Generating ${_schema_name} headers"
You can’t perform that action at this time.
0 commit comments