
Change version to use git describe instead of git log as this will also work if tags are present and make the version string set-able from outside as a parameter to cmake, so that package managers can set this if building outside of a git working tree.
6 lines
93 B
C
6 lines
93 B
C
#ifndef VERSION_H
|
|
#define VERSION_H
|
|
|
|
#define GIT_DESCRIBE_STR "@CURRENT_GIT_VERSION@"
|
|
|
|
#endif |