mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

This reverts commit 9f3081dc6fe8447e85741865846840bc491866e5. Broke clangd buildbots in https://lab.llvm.org/buildbot/#/builders/131/builds/38935.
12 lines
426 B
CMake
12 lines
426 B
CMake
include(FindGRPC)
|
|
|
|
function(generate_clang_protos_library LibraryName ProtoFile)
|
|
# Take the first two args and forward the remaining to generate_proto_sources.
|
|
cmake_parse_arguments(PARSE_ARGV 2 PROTO "" "" "")
|
|
generate_proto_sources(ProtoSource ${ProtoFile} ${PROTO_UNPARSED_ARGUMENTS})
|
|
|
|
add_clang_library(${LibraryName} ${ProtoSource}
|
|
PARTIAL_SOURCES_INTENDED
|
|
LINK_LIBS PUBLIC grpc++ protobuf)
|
|
endfunction()
|