Skip to content

Commit e9cf64a

Browse files
authored
fix building with CMake + Ninja after pytorch#9077 (pytorch#9246)
Needed to tell CMake to tell Ninja where flatc comes from.
1 parent ce612b8 commit e9cf64a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ if(EXECUTORCH_BUILD_FLATC)
509509
-DCMAKE_BUILD_TYPE=Release
510510
-DCMAKE_CXX_FLAGS="-DFLATBUFFERS_MAX_ALIGNMENT=${FLATBUFFERS_MAX_ALIGNMENT}"
511511
INSTALL_COMMAND ""
512+
BUILD_BYPRODUCTS <BINARY_DIR>/flatc
512513
)
513514
ExternalProject_Get_Property(flatbuffers BINARY_DIR)
514515
set(FLATC_EXECUTABLE ${BINARY_DIR}/flatc)

0 commit comments

Comments
 (0)