Skip to content

Commit 361595d

Browse files
committed
Add back missing ARROW_SUBSTRAIT_PROTOS_DIR
1 parent 92be5ec commit 361595d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2193,9 +2193,11 @@ macro(build_substrait)
21932193
SKIP_UNITY_BUILD_INCLUSION TRUE)
21942194
list(APPEND SUBSTRAIT_PROTO_GEN_ALL "${ARROW_SUBSTRAIT_PROTO_GEN}.${EXT}")
21952195
endforeach()
2196+
set(ARROW_SUBSTRAIT_PROTOC_INCLUDES ${SUBSTRAIT_PROTOC_INCLUDES}
2197+
"-I${ARROW_SUBSTRAIT_PROTOS_DIR}")
21962198
add_custom_command(OUTPUT "${ARROW_SUBSTRAIT_PROTO_GEN}.cc"
21972199
"${ARROW_SUBSTRAIT_PROTO_GEN}.h"
2198-
COMMAND ${ARROW_PROTOBUF_PROTOC} ${SUBSTRAIT_PROTOC_INCLUDES}
2200+
COMMAND ${ARROW_PROTOBUF_PROTOC} ${ARROW_SUBSTRAIT_PROTOC_INCLUDES}
21992201
"--cpp_out=${SUBSTRAIT_CPP_DIR}"
22002202
"${ARROW_SUBSTRAIT_PROTOS_DIR}/substrait/${ARROW_SUBSTRAIT_PROTO}.proto"
22012203
DEPENDS ${PROTO_DEPENDS} substrait_ep)

0 commit comments

Comments
 (0)