New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake support #291
Comments
Thanks for the suggestion. Adding cmake support is in our plan. I have done some experiments using cmake a while ago (see: https://github.com/xfxyjwf/protobuf/tree/cmake/vsprojects). I'll try to get it reviewed and merged in when I get time to work on it. |
@xfxyjwf @paleozogt you can adopt following solution from here https://github.com/jesperes/protobuf-cmake |
will be fixed with pull #457 |
Looks like #457 was merged but this ticket was not updated. |
@xfxyjwf Not sure exactly what should go first and what should be removed, basically the readme indicate what to read to build/link, so it should now mention (or show how to) at the beginning that you can use CMake to generate project files instead of the now "legacy" project files. |
@Klaim Seems you are talking about the README.md file in the root directory? There I had changed the section about "C++ Installation - Windows" to point to cmake/README.md: In cmake/README.md, it mainly talks about how to build with Visual Studio as cmake is introducted to replace vsproject files and the text is copied from vsprojects/readme.txt. As cmake can be used more than just Visual Studio, I guess we should also describe how to use cmake for other platform/compilers. The root README.md could also mention cmake as an alternative to autoconf rather than specific to windows builds. Is this what you are suggesting here? |
@xfxyjwf Yes that is exactly what I am suggesting. I am guessing that for example on unix somehting close to saying that
Will work (I'm not a specialist but there should be a way to do this). Then for other plateforms only the second line change. |
(fyi, I filed a ticket for CMake support when protobuf was on code.google.com, but it seems to have gotten lost in the transition to github.)
Can we get CMake support added to protobuf?
Some reasons why CMake is useful:
The text was updated successfully, but these errors were encountered: