Make sure to add gRPC include directory

This commit is contained in:
David Li authored and Wes McKinney committed 2019-01-19 19:23:38 -06:00
1 parent 7e8641887f
commit 33e1282ccd
1 file changed
+2 -1
+2 -1
View File
@@ -1243,7 +1243,6 @@ if (ARROW_FLIGHT)
${EP_LOG_OPTIONS}
CMAKE_ARGS ${GRPC_CMAKE_ARGS}
${EP_LOG_OPTIONS})
include_directories(SYSTEM ${GRPC_INCLUDE_DIR})
get_property(GPR_STATIC_LIB TARGET gRPC::gpr PROPERTY LOCATION)
get_property(GRPC_STATIC_LIB TARGET gRPC::grpc_unsecure PROPERTY LOCATION)
@@ -1269,6 +1268,8 @@ if (ARROW_FLIGHT)
message(SEND_ERROR "Please set GRPC_CPP_PLUGIN.")
endif()
include_directories(SYSTEM ${GRPC_INCLUDE_DIR})
ADD_THIRDPARTY_LIB(grpc_gpr
STATIC_LIB ${GPR_STATIC_LIB})