Commit Graph

3 Commits

Author SHA1 Message Date
Daniel Elstner 812c0e3592 build: Limit auto-versioning to git revision hash
When building from a git checkout and HEAD does not exactly match
a tag, append the shortened revision hash to the hardcoded version
string. Do not attempt to provide any information beyond that.

This brings the PulseView versioning in line with the other modules
in the sigrok stack.
2015-11-02 22:14:39 +01:00
Daniel Elstner 3d87310109 Build: Use -dirty version suffix for local changes
Pass --dirty to git describe.  This needed a slight hack to
GetGitRevisionDescription.cmake to make it work.  Also pass
--tags to make git include lightweight tags in its search.
2015-07-25 19:11:40 +02:00
Daniel Elstner 1e8c82e90f build: Derive PulseView version from git tags
Derive the PulseView version numbers and suffix from the git
repository if available. In order to make builds from source
tarballs work, also include a generated VERSION file in the
source package generated by CPack.

The included GetGitRevisionDescription.cmake file is a copy
from the https://github.com/rpavlik/cmake-modules repository.
2015-07-25 19:11:40 +02:00