Build: Make hardcoded version override git tag
authorDaniel Elstner <daniel.kitta@gmail.com>
Thu, 23 Jul 2015 21:31:25 +0000 (23:31 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 25 Jul 2015 17:12:41 +0000 (19:12 +0200)
commitd69b3c315c5335091a659a3c268cd5f7e27a4b26
tree3324a0c77b1e194aba148e554132f3c9e7ca4c00
parent3d87310109576c77819c4c592d41bc1d9731978b
Build: Make hardcoded version override git tag

Reintroduce the hard-coded version number in CMakeList.txt, but
still check for a tagged version. If the hard-coded version is
more recent than the latest tag, then use that but with a "-pre"
suffix in place of the patch level.

In either case, still append the revision hash and possibly the
dirty flag to the version, unless git HEAD exactly matches a tag.
CMakeLists.txt