CMake Fix for GRPC Shared Build
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 10 Jul 2019 13:06:57 +0000 (22:06 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 10 Jul 2019 13:06:57 +0000 (22:06 +0900)
It has other .pc files

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tensorflow/contrib/cmake/external/grpc.cmake

index aca09a4f3c4e5525a3c499a433cba906fe25c3d4..a14053b6ee98e63de197bc8804ae273d464527a6 100644 (file)
@@ -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_)