Commit 5f122c44 authored by Ilya Lipnitskiy's avatar Ilya Lipnitskiy

protoc-c/main.cc: add a version string to protoc-c based on the

PACKAGE_STRING provided by autotools (fixes #52)
parent 59688a92
...@@ -9,6 +9,9 @@ int main(int argc, char* argv[]) { ...@@ -9,6 +9,9 @@ int main(int argc, char* argv[]) {
google::protobuf::compiler::c::CGenerator c_generator; google::protobuf::compiler::c::CGenerator c_generator;
cli.RegisterGenerator("--c_out", &c_generator, cli.RegisterGenerator("--c_out", &c_generator,
"Generate C/H files."); "Generate C/H files.");
// Add version info generated by automake
cli.SetVersionInfo(PACKAGE_STRING);
return cli.Run(argc, argv); return cli.Run(argc, argv);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment