From: MyungJoo Ham Date: Wed, 10 Jul 2019 13:06:57 +0000 (+0900) Subject: CMake Fix for GRPC Shared Build X-Git-Tag: submit/tizen/20190722.095424~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa2b9457f51ffee7e7c4877040326e4bdaa83236;p=platform%2Fupstream%2Ftensorflow.git CMake Fix for GRPC Shared Build It has other .pc files Signed-off-by: MyungJoo Ham --- diff --git a/tensorflow/contrib/cmake/external/grpc.cmake b/tensorflow/contrib/cmake/external/grpc.cmake index aca09a4f3c..a14053b6ee 100644 --- a/tensorflow/contrib/cmake/external/grpc.cmake +++ b/tensorflow/contrib/cmake/external/grpc.cmake @@ -21,6 +21,10 @@ if (systemlib_GRPC) set(grpc_STATIC_LIBRARIES libgrpc.a libgrpc++.a libaddress_sorting.a libgpr.a) message("GRPC_LIBRARIES : [${GRPC_LIBRARIES}]") + pkg_search_module(GPR REQUIRED gpr) + pkg_search_module(GRPCPP REQUIRED grpc++) + set(GRPC_LIBRARIES ${GRPC_LIBRARIES} ${GPR_LIBRARIES} ${GRPCPP_LIBRARIES}) + # To meet DEPENDS grpc from other projects. # If we hit this line, grpc is already built and installed to the system. add_custom_target(grpc_)