From de4c28b8a1de1118cc298148b5f2f62800e64c36 Mon Sep 17 00:00:00 2001 From: Saif Kandil <74428638+k0T0z@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:59:58 +0200 Subject: [PATCH] Fix CMake error because of gRPC and Protobuf Signed-off-by: Saif Kandil <74428638+k0T0z@users.noreply.github.com> --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3be56113f..df4a2ce68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -244,15 +244,15 @@ include_directories(${EXE} PRIVATE ${RAPIDJSON_INCLUDE_DIRS}) find_package(yaml-cpp CONFIG REQUIRED) target_link_libraries(${EXE} PRIVATE yaml-cpp) - #Find gRPC - find_package(gRPC CONFIG REQUIRED) - target_link_libraries(${EXE} PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++) - # Find Protobuf include(FindProtobuf) include_directories(${Protobuf_INCLUDE_DIRS}) target_link_libraries(${EXE} PRIVATE ${Protobuf_LIBRARIES}) +#Find gRPC +find_package(gRPC CONFIG REQUIRED) +target_link_libraries(${EXE} PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++) + # Find OpenSSL find_package(OpenSSL REQUIRED) target_link_libraries(${EXE} PRIVATE OpenSSL::SSL OpenSSL::Crypto)