Fix initial build

This commit is contained in:
Zachary Hall 2024-09-28 10:48:35 -07:00
parent 25c8d7b01b
commit 2086d0fbd2

View file

@ -235,14 +235,7 @@ function(grpc_proto)
list(APPEND GRPC_PROTO_SRCS ${src_out}/${src_stem}.pb.cc)
list(APPEND GRPC_PROTO_HDRS ${src_out}/${src_stem}.pb.h)
make_directory(${src_out})
add_custom_command(
OUTPUT ${GRPC_PROTO_SRCS} ${GRPC_PROTO_HDRS}
COMMAND ${_PROTOBUF_PROTOC}
--cpp_out "${src_out}"
-I "${src_path}"
"${GRPC_PROTO_SOURCE}"
DEPENDS "${GRPC_PROTO_SOURCE}"
)
execute_process(COMMAND ${_PROTOBUF_PROTOC} --cpp_out "${src_out}" -I "${src_path}" "${GRPC_PROTO_SOURCE}")
target_sources(${GRPC_PROTO_TARGET} PRIVATE ${GRPC_PROTO_SRCS})
target_include_directories(${GRPC_PROTO_TARGET} PRIVATE ${src_out})
endforeach()