Skip to content

Derive version from git tag; bump to 3.0.0 - #22

Merged
cboulay merged 1 commit into
masterfrom
cboulay/version-from-git-tag
Nov 2, 2026
Merged

cboulay merged 1 commit into
masterfrom
cboulay/version-from-git-tag

Conversation

@cboulay

@cboulay cboulay commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • project() VERSION now comes from the nearest v*/numeric git tag via a new cmake/ProjectVersion.cmake, using the same approach as App-LabRecorder. Source archives without .git fall back to a literal version.
  • CPack uses the full tag, so pre-release suffixes (e.g. 3.0.0b1) appear in package names. Debian pre-releases sort before the final release (3.0.0~b1).
  • You can force a version with -DEGIAMP_VERSION_OVERRIDE=....
  • CI checkout uses fetch-depth: 0 so tags are available.
  • The fallback is 3.0.0. NA500 (GES 500) support called for a major version bump.

Release note

After merging, tag v3.0.0 on master. Until then, git-based builds still report 2.2.0 from the existing v2.2.0 tag.

Testing

  • Configure only: the version resolves to 2.2.0 from the current tag. With EGIAMP_VERSION_OVERRIDE=v2.3.0b1 the package name is EGIAmpServer-2.3.0b1-macOS_arm64.

🤖 Generated with Claude Code

project() VERSION now comes from the nearest v*/numeric git tag via
cmake/ProjectVersion.cmake (same approach as App-LabRecorder), falling back
to a literal for source archives without .git. CPack uses the full tag so
pre-release suffixes (e.g. 3.0.0b1) survive into package names, and Debian
prereleases sort before the final release.

The fallback is 3.0.0: NA500 (GES 500) support warranted a major bump.
CI checkout now fetches full history so tags are visible.

Co-Authored-By: Claude <noreply@anthropic.com>
@cboulay
cboulay merged commit 8c99366 into master Nov 2, 2026
6 checks passed
@cboulay
cboulay deleted the cboulay/version-from-git-tag branch November 2, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant