blob: cbb9b139f80b0e6e8054d59b0fd43723b8715cad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <string.h>
char gitVersionString[]="@GIT_HEAD_SHA1@";
/* - On some systems git is not installed or
* installed on a place whete FindGit.cmake cannot find it
* - No git information is present (no .git directory)
* in those cases clear the gitVersionString (would have string GIT-NOTFOUND).
*/
void correctGitVersion(void)
{
if (!strcmp(gitVersionString, "GIT-NOTFOUND")) gitVersionString[0] = '\0';
}
|