Report commit hash in CMake development versions

For builds from Git repositories, add "-g<commit>" to the end of the
version number.  If the source tree is modified, append "-dirty".
For builds from CVS checkouts, add "-cvs-<branch>".
This commit is contained in:
Brad King 2010-04-23 10:01:49 -04:00
parent e49b6eca4f
commit 0328379411
4 changed files with 49 additions and 3 deletions