cmake: added logic for building a tagged commit
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 9 Jun 2014 18:22:52 +0000 (19:22 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 9 Jun 2014 18:23:27 +0000 (19:23 +0100)
commit864306acf51daec4d2a8f2233af5a49d8dc8036c
tree85c7807d0af97d38c3cf68a69767d0a6907eff08
parent814cc4a0e8e0cfe02eb943a55f94d50a3b758c61
cmake: added logic for building a tagged commit

* If the HEAD is 0 away from a tag, i.e. if it has just been tagged,
  removes commit number from version

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
CMakeLists.txt