Skip to content

Commit ce0e748

Browse files
committed
fix building with CMake + Ninja after #9077
Needed to tell CMake to tell Ninja where flatc comes from. ghstack-source-id: d700821 ghstack-comment-id: 2722835544 Pull Request resolved: #9246
1 parent 630d0cc commit ce0e748

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
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)