Skip to content

Commit 59a83d5

Browse files
authored
fix: use correct git describe version tag match pattern (#920)
### Briefly, what does this PR introduce? Instead of `v1.1.0-949-ge32c0d070-dirty` this should now give `25.08.0-0-g<hash>`. ### What kind of change does this PR introduce? - [x] Bug fix (issue, ok not really a bug) - [ ] New feature (issue #__) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? No. Hyrum's principle probably... ### Does this PR change default behavior? No.
1 parent f0d8307 commit 59a83d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/git_version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ macro(set_git_version VERSION)
77
if(GIT_EXECUTABLE)
88
# Generate a git-describe version string from Git repository tags
99
execute_process(
10-
COMMAND ${GIT_EXECUTABLE} describe --tags --dirty --match "v*"
10+
COMMAND ${GIT_EXECUTABLE} describe --tags --dirty --match "*.*.*"
1111
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
1212
OUTPUT_VARIABLE GIT_DESCRIBE_VERSION
1313
RESULT_VARIABLE GIT_DESCRIBE_ERROR_CODE

0 commit comments

Comments
 (0)