C
C#2y ago
CrosRoad95

❔ protobuf not generating proto files

INCLUDE(FindProtobuf)
FIND_PACKAGE(Protobuf REQUIRED)
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
PROTOBUF_GENERATE_CPP(PROTO_SRC PROTO_HEADER test.proto)
ADD_LIBRARY(proto ${PROTO_SRC} ${PROTO_HEADER})
INCLUDE(FindProtobuf)
FIND_PACKAGE(Protobuf REQUIRED)
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
PROTOBUF_GENERATE_CPP(PROTO_SRC PROTO_HEADER test.proto)
ADD_LIBRARY(proto ${PROTO_SRC} ${PROTO_HEADER})
i'm confused why it doesn't work, have protobuf installed, no error but file test.pb.h not generating
4 Replies
CrosRoad95
CrosRoad95OP2y ago
people say i can use just "PROTOBUF_GENERATE" command, but it not working too
phaseshift
phaseshift2y ago
Sir, this is a c# discord
CrosRoad95
CrosRoad95OP2y ago
oh, yea i didn't notice xD i'm on both
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server