© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
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
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Reference other files in Protobuf
C#CC# / help
5w ago
Using CsWinRT not generating files?
C#CC# / help
5mo ago
❔ Source generator & protobuf
C#CC# / help
4y ago
❔ ProtoBuf cannot find imports
C#CC# / help
4y ago