From 51b42fc20ed9f9a1a052483ee511b5723c10a7b0 Mon Sep 17 00:00:00 2001 From: Greg Williamson Date: Wed, 13 Oct 2021 22:58:35 -0400 Subject: [PATCH] arch fixed the bug --- CMakeLists.txt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 213c9bda7..bc2a2a097 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,16 +242,8 @@ find_package(yaml-cpp CONFIG REQUIRED) target_link_libraries(${EXE} PRIVATE yaml-cpp) #Find gRPC - if (MSVC) # Windows actually does something right for once - find_package(gRPC CONFIG REQUIRED) - target_link_libraries(${EXE} PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++) - else() # https://tinyurl.com/arch-grpc-bug - find_library(LIB_GRPC_UNSECURE NAMES grpc++_unsecure) - find_library(LIB_GPR NAMES gpr) - find_library(LIB_CARES NAMES cares) - find_library(LIB_ADDRESS_SORTING NAMES address_sorting) - target_link_libraries(${EXE} PRIVATE ${LIB_CARES} ${LIB_ADDRESS_SORTING} ${LIB_GPR} ${LIB_GRPC_UNSECURE}) - endif() + find_package(gRPC CONFIG REQUIRED) + target_link_libraries(${EXE} PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++) # Find Protobuf include(FindProtobuf)