diff options
author | Tobias Müller <Tobias_Mueller@twam.info> | 2020-01-11 11:04:07 +0100 |
---|---|---|
committer | Tobias Müller <Tobias_Mueller@twam.info> | 2020-01-11 11:38:45 +0100 |
commit | 659c4fad56da8d285060c8d0edd3918e8c5a1575 (patch) | |
tree | e21c4a178cc59f9963981e4da0511d18afa81119 /common/command.cc | |
parent | abfe31d5d22a0ed1cc6ef32cf73fc1826b090b1c (diff) | |
download | nextpnr-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/command.cc')
-rw-r--r-- | common/command.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/command.cc b/common/command.cc index c2f02b27..3866caca 100644 --- a/common/command.cc +++ b/common/command.cc @@ -69,14 +69,14 @@ bool CommandHandler::executeBeforeContext() { if (vm.count("help") || argc == 1) { std::cerr << boost::filesystem::basename(argv[0]) - << " -- Next Generation Place and Route (git sha1 " GIT_COMMIT_HASH_STR ")\n"; + << " -- Next Generation Place and Route (Version " GIT_DESCRIBE_STR ")\n"; std::cerr << options << "\n"; return argc != 1; } if (vm.count("version")) { std::cerr << boost::filesystem::basename(argv[0]) - << " -- Next Generation Place and Route (git sha1 " GIT_COMMIT_HASH_STR ")\n"; + << " -- Next Generation Place and Route (Version " GIT_DESCRIBE_STR ")\n"; return true; } validate(); |