Skip to content

Commit bc8184a

Browse files
committed
fix: use correct git describe version tag match pattern
1 parent f0d8307 commit bc8184a

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)