Fix initial build
This commit is contained in:
parent
25c8d7b01b
commit
2086d0fbd2
1 changed files with 2 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue