Skip to content

Commit ac405b3

Browse files
committed
Ensure .proto file is compiled before anything else
Change-Id: I2f8d64eee08c3eb68eb38da64c4729f68cd0c466
1 parent 23fe416 commit ac405b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/src/arrow/flight/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ add_custom_command(
5858

5959
set_source_files_properties(${FLIGHT_GENERATED_PROTO_FILES} PROPERTIES GENERATED TRUE)
6060

61+
add_custom_target(flight_grpc_gen ALL DEPENDS ${FLIGHT_GENERATED_PROTO_FILES})
62+
6163
set(ARROW_FLIGHT_SRCS
6264
client.cc
6365
internal.cc
@@ -69,6 +71,8 @@ set(ARROW_FLIGHT_SRCS
6971
add_arrow_lib(arrow_flight
7072
SOURCES
7173
${ARROW_FLIGHT_SRCS}
74+
DEPENDENCIES
75+
flight_grpc_gen
7276
SHARED_LINK_LIBS
7377
arrow_shared
7478
${ARROW_FLIGHT_STATIC_LINK_LIBS}

0 commit comments

Comments
 (0)