Properly depend on Protobuf for Flight protos

This commit is contained in:
David Li authored and Wes McKinney committed 2019-01-19 19:23:38 -06:00
1 parent 1eed959c46
commit 38a219aaed
1 file changed
+1 -5
+1 -5
View File
@@ -38,11 +38,7 @@ set(FLIGHT_GENERATED_PROTO_FILES
"${CMAKE_CURRENT_BINARY_DIR}/Flight.grpc.pb.cc"
"${CMAKE_CURRENT_BINARY_DIR}/Flight.grpc.pb.h")
if(PROTOBUF_VENDORED)
set(PROTO_DEPENDS ${FLIGHT_PROTO} protobuf)
else()
set(PROTO_DEPENDS ${FLIGHT_PROTO})
endif()
set(PROTO_DEPENDS ${FLIGHT_PROTO} ${PROTOBUF_LIBRARY})
add_custom_command(
OUTPUT ${FLIGHT_GENERATED_PROTO_FILES}