My collection of cmake modules
This collection is freely distributable without any warranty. You can use it for any purposes including proprietary projects.
The author of this collection is Ruslan Mullakhmetov.
Provide a number of function to extract information from local git repository
Gets revision number from specified local git repository (dir).
Git it decentralized SCM system, so there is no explicit revision number, instead we assume a number of commits as revision number (at least as a good aproximation). This method was suggested by OderWatless in this thread http://stackoverflow.com/questions/4120001/what-is-the-git-equivalent-for-revision-number
Gets last commit hash from specified local git repository (dir).
Enable C++11 support for various compilers and build systems.
Currently supported:
- GNU C++ Compiler (g++)
- Clang compiler (LLVM frontend)
- Appple Xcode
usage:
include(EnableCpp11)