Skip to content

Releases: sethrj/cmake-git-version

Version 1.3.2

12 Jan 13:39

Choose a tag to compare

Remove an unintentional duplicate call to git describe --tags.

Version 1.3.1

31 Dec 16:21

Choose a tag to compare

Specifying ${PROJECT}_VERSION via CMakeLists or the command line will now populate the version for shallow git clones alongside the git hash.

Version 1.3.0

31 Dec 15:22

Choose a tag to compare

Allow a fallback version by specifying ${PROJECT}_VERSION through the command line/cache or via the parent CMakeLists.txt.

Version 1.2.2

25 Apr 11:35

Choose a tag to compare

  • Strip leading zeros from version numbers (e.g., Geant4)
  • Print verbose git output

Version 1.2.1

27 Feb 16:43

Choose a tag to compare

Fixes the cache location for git metadata.

Version 1.2.0

27 Feb 15:38

Choose a tag to compare

  • When using git, the version is automatically invalidated when changing branches
  • Support non-semver tags such as foo-1-2-3
  • Git branch is added as version metadata such as +mybranch.abc123

v1.1.3

26 Feb 14:36
4f97955

Choose a tag to compare

Actually use the git description, which does indeed seem to work on github.

Version 1.1.2

03 Feb 12:12

Choose a tag to compare

Fixes the describe output (except that GitHub archives seem not to support this) and documentation.

Full Changelog: v1.1.1...v1.1.2

Version 1.1.1

07 Jul 14:25

Choose a tag to compare

This improves SemVer compliance.

  • Fix non-release versions to be SemVer compliant
  • Remove leading 'v' from version string

Version 1.1.0

30 Oct 13:08

Choose a tag to compare

  • Improve SemVer compliance with pre-release number
  • Match -dev tags by default (rather than requiring -devN)
  • Refactor internals for better readability

Full Changelog: v1.0.2...v1.1.0