Fixed the link order for gRPC in CMake. Review: https://reviews.apache.org/r/67025
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b863f6c7 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b863f6c7 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b863f6c7 Branch: refs/heads/master Commit: b863f6c78580fbfae69ea64237f2b8361b9d7268 Parents: bc9580d Author: Chun-Hung Hsiao <chhs...@mesosphere.io> Authored: Tue May 8 19:02:14 2018 -0700 Committer: Chun-Hung Hsiao <chhs...@mesosphere.io> Committed: Wed May 9 12:05:14 2018 -0700 ---------------------------------------------------------------------- 3rdparty/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/b863f6c7/3rdparty/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index eaa2534..3837a31 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -1006,7 +1006,7 @@ if (ENABLE_GRPC) add_dependencies(libgrpc++ ${GRPC_TARGET}) add_library(grpc INTERFACE) - target_link_libraries(grpc INTERFACE libgpr libgrpc libgrpc++) + target_link_libraries(grpc INTERFACE libgrpc++ libgrpc libgpr) # TODO(chhsiao): Move grpc so these don't have to be GLOBAL. add_executable(grpc_cpp_plugin IMPORTED GLOBAL)