The FindProtobuf module available in cmake offers the command PROTOBUF_GENERATE_CPP that calls protoc from within cmake. This command is normally executed at compilation time (when you run "make"). Since some of my source files include the generated files, the dependency check during "cmake .." fails because the files are not yet generated.
Is it possible to have this command run at configuration time right before the dependency check?
Thanks
PROTOBUF_GENERATE_CPPshould make those files when you call the function at configuration time. When it does this it should printRunning C++ protocol buffer compiler on ${MATCH_PATH} with root ${PROTOROOT}, generating: ${CPP_FILE}Do you see that when you configure? - SethMMortonPROTOBUF_GENERATE_CPPwithDEBUGand look at the information it gives. You might be able to tell your target to be dependent on the output ofPROTOBUF_GENERATE_CPPso that it figures out what to do at build time (i.e. when you runmake). - SethMMortoncmake). Sorry about that. - SethMMorton