Skip to content

Conversation

jbaldwin
Copy link
Owner

@jbaldwin jbaldwin commented Sep 5, 2025

This change will now dynamically set the project VERSION in cmake to the latest git describe tag released.

Now requires find_package(Git) to properly get the latest tag.

The tag is in the format of "v..-[-dirty]". This must be parsed into a semver format of ".." for cmake's VERSION to accept it.

Closes #381

@jbaldwin jbaldwin self-assigned this Sep 5, 2025
@jbaldwin jbaldwin force-pushed the issue-381/cmake-project-version-out-of-date branch 6 times, most recently from 7241e3a to 2370cfd Compare September 5, 2025 18:54
This change will now dynamically set the project VERSION in cmake to the
latest git describe tag released.

Now requires find_package(Git) to properly get the latest tag.

The tag is in the format of "v<n>.<n>.<n>-<hash>[-dirty]". This must be
parsed into a semver format of "<n>.<n>.<n>" for cmake's VERSION to
accept it.

Closes #381
@jbaldwin jbaldwin force-pushed the issue-381/cmake-project-version-out-of-date branch from 2370cfd to 7f1f4e5 Compare September 5, 2025 19:04
@jbaldwin jbaldwin force-pushed the issue-381/cmake-project-version-out-of-date branch from 66b5b7a to d8a1e80 Compare September 9, 2025 01:15
@jbaldwin jbaldwin merged commit 5c33fb2 into main Sep 9, 2025
48 checks passed
@jbaldwin jbaldwin deleted the issue-381/cmake-project-version-out-of-date branch September 9, 2025 01:37
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.

CMake project version number seems out of sync
2 participants