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
......@@ -10,5 +10,8 @@ int main(int argc, char* argv[]) {
cli.RegisterGenerator("--c_out", &c_generator,
"Generate C/H files.");
// Add version info generated by automake
cli.SetVersionInfo(PACKAGE_STRING);
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