build: Allow setting version string at build. #54
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
windows
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: speed-dreams/speed-dreams-code#54
Loading…
Reference in a new issue
No description provided.
Delete branch "apteryx/speed-dreams-code:allow-setting-version-string"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When retrieving the source from git, the version string is not known
in advance, and git is invoked to compute it. In some environments
such as Guix, there is no git metadata kept during the build as this
would introduce non-determinism; it is thus necessary to be able to
manually set the version (which is displayed when the game launches).
users can override it using e.g., -DVERSION:STRING=2.4.0.
LGTM, thanks!