aboutsummaryrefslogtreecommitdiffstats
path: root/common/version.h.in
diff options
context:
space:
mode:
authorTobias Müller <Tobias_Mueller@twam.info>2020-01-11 11:04:07 +0100
committerTobias Müller <Tobias_Mueller@twam.info>2020-01-11 11:38:45 +0100
commit659c4fad56da8d285060c8d0edd3918e8c5a1575 (patch)
treee21c4a178cc59f9963981e4da0511d18afa81119 /common/version.h.in
parentabfe31d5d22a0ed1cc6ef32cf73fc1826b090b1c (diff)
downloadnextpnr-659c4fad56da8d285060c8d0edd3918e8c5a1575.tar.gz
nextpnr-659c4fad56da8d285060c8d0edd3918e8c5a1575.tar.bz2
nextpnr-659c4fad56da8d285060c8d0edd3918e8c5a1575.zip
Change version to git describe and make set-able from outside
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.
Diffstat (limited to 'common/version.h.in')
-rw-r--r--common/version.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/version.h.in b/common/version.h.in
index 8072116b..c67d7d52 100644
--- a/common/version.h.in
+++ b/common/version.h.in
@@ -1,6 +1,6 @@
#ifndef VERSION_H
#define VERSION_H
-#define GIT_COMMIT_HASH_STR "@GIT_COMMIT_HASH@"
+#define GIT_DESCRIBE_STR "@CURRENT_GIT_VERSION@"
#endif \ No newline at end of file