Skip to content

Commit 200b7dd

Browse files
committed
Update
[ghstack-poisoned]
1 parent 0c7f574 commit 200b7dd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

devtools/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
# LICENSE file in the root directory of this source tree.
66

77
# The include directory that will contain the generated schema headers.
8+
set(DEVTOOLS_INCLUDE_DIR_NO_BUILD_INTERFACE ${CMAKE_BINARY_DIR}/devtools/include)
89
set(DEVTOOLS_INCLUDE_DIR
9-
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/devtools/include>
10+
$<BUILD_INTERFACE:${DEVTOOLS_INCLUDE_DIR_NO_BUILD_INTERFACE}>
1011
)
1112

1213
add_subdirectory(etdump)

devtools/etdump/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ foreach(schema_file ${_schema_files})
2121
list(APPEND _schema_outputs "${DEVTOOLS_INCLUDE_DIR}/executorch/devtools/etdump/${generated_builder}")
2222
endforeach()
2323

24-
file(MAKE_DIRECTORY ${DEVTOOLS_INCLUDE_DIR}/executorch/devtools/etdump)
24+
file(MAKE_DIRECTORY ${DEVTOOLS_INCLUDE_DIR_NO_BUILD_INTERFACE}/executorch/devtools/etdump)
2525
add_custom_command(
2626
OUTPUT ${_schema_outputs}
2727
COMMAND
2828
# Note that the flatcc project actually writes its outputs into the source
2929
# tree instead of under the binary directory, and there's no way to change
3030
# that behavior.
3131
flatcc_cli -cwr -o
32-
${DEVTOOLS_INCLUDE_DIR}/executorch/devtools/etdump
32+
${DEVTOOLS_INCLUDE_DIR_NO_BUILD_INTERFACE}/executorch/devtools/etdump
3333
${_etdump_schema__srcs}
3434
DEPENDS flatcc_cli ${_etdump_schema__srcs}
3535
COMMENT "Generating etdump headers"

0 commit comments

Comments
 (0)