@@ -39,7 +39,8 @@ set(_bundled_program_schema__srcs
39
39
${_bundled_program_schema_dir} /scalar_type.fbs )
40
40
41
41
# The include directory that will contain the generated schema headers.
42
- set (_program_schema__include_dir "${CMAKE_BINARY_DIR} /schema/include" )
42
+ set (_program_schema__include_dir
43
+ "${CMAKE_BINARY_DIR} /schema/include/executorch/sdk/bundled_program/schema" )
43
44
44
45
set (_bundled_program_schema__outputs )
45
46
foreach (fbs_file ${_bundled_program_schema__srcs} )
@@ -52,7 +53,7 @@ add_custom_command(
52
53
OUTPUT ${_bundled_program_schema__outputs}
53
54
COMMAND
54
55
${FLATC_EXECUTABLE} --cpp --cpp-std c++11 --gen-mutable --scoped-enums -o
55
- " ${_program_schema__include_dir} /executorch/sdk/bundled_program/schema" ${_bundled_program_schema__srcs}
56
+ ${_program_schema__include_dir} ${_bundled_program_schema__srcs}
56
57
WORKING_DIRECTORY ${EXECUTORCH_ROOT}
57
58
DEPENDS ${FLATC_EXECUTABLE} ${_bundled_program_schema__srcs}
58
59
COMMENT "Generating bundled_program headers"
@@ -69,7 +70,9 @@ set(mps_executor_runner_libs "-framework Foundation"
69
70
"-weak_framework MetalPerformanceShadersGraph"
70
71
"-weak_framework Metal" )
71
72
list (TRANSFORM _mps_executor_runner__srcs PREPEND "${EXECUTORCH_ROOT} /" )
72
- add_executable (mps_executor_runner ${_mps_executor_runner__srcs} ${_bundled_program_schema__outputs} )
73
+ add_executable (mps_executor_runner
74
+ ${_mps_executor_runner__srcs}
75
+ ${_bundled_program_schema__outputs} )
73
76
target_include_directories (
74
77
mps_executor_runner INTERFACE ${CMAKE_BINARY_DIR} /schema/include/
75
78
${EXECUTORCH_ROOT} /third-party/flatbuffers/include )
0 commit comments