Skip to content

Commit

Permalink
add gRPC build dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Sep 1, 2024
1 parent 2da5fe3 commit f56bbb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions OdbDesignLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ target_link_libraries(OdbDesign PUBLIC protobuf::libprotobuf)
# add the generated Protobuf C++ files to the target
#target_sources(OdbDesign PRIVATE ${PROTO_SRCS} ${PROTO_HDRS})

# gRPC
find_package(gRPC CONFIG REQUIRED)
target_link_libraries(OdbDesign PUBLIC gRPC::grpc++)

# workaround to remove error: "C++ command-line error: invalid macro definition: _CROW_ICD-NOTFOUND"
# (see https://github.com/CrowCpp/Crow/issues/661#issuecomment-1702544225)
list(REMOVE_ITEM _CROW_ICD "_CROW_ICD-NOTFOUND")
Expand Down
8 changes: 7 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"zlib"
]
},
"openssl"
"openssl",
{
"name": "grpc",
"features": [
"codegen"
]
}
]
}

0 comments on commit f56bbb4

Please sign in to comment.