# versioning by commit hash

**URL:** https://discourse.cmake.org/t/versioning-by-commit-hash/11318
**Category:** Development
**Created:** [July 24, 2024, 1:31pm UTC](https://discourse.cmake.org/t/versioning-by-commit-hash/11318 "2024-07-24T13:31:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![victorstewart](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/v/f1d935/32.png) [@victorstewart](https://discourse.cmake.org/u/victorstewart)
#### Post date: [July 24, 2024, 1:31pm UTC](https://discourse.cmake.org/t/versioning-by-commit-hash/11318/1 "2024-07-24T13:31:06Z")

</div>

there are a number of open source libraries which resist versioning and expect users to build from the master branch. this is fine until you need to force a rebuild to the latest…

it would be great if we could also create versioning by git commit hash, which requires exact matches.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [July 18, 2025, 8:30pm UTC](https://discourse.cmake.org/t/versioning-by-commit-hash/11318/2 "2025-07-18T20:30:36Z")

</div>

Could you please provide an example of the behavior you’re requesting?
