cmake: fix version when git is pesent but no tree is found
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 16 Jun 2015 10:12:16 +0000 (11:12 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 16 Jun 2015 10:12:17 +0000 (11:12 +0100)
commita44c5851ccf942f41c5eb24feaebad44e5befb6d
treea9b0988d5a50b08fe8dbdc4f2c5cc9247f1d3b0b
parentc9cfcb2caef52488619985e7cb7d98e8bd4772cc
cmake: fix version when git is pesent but no tree is found

This avoids the version being .so.HEAD-HASH-NOTFOUND or similar when git is
present on the target but a valid tree is not found

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
CMakeLists.txt