Skip to content

Commit 9858b3c

Browse files
committed
fix tag handling
1 parent d86c40f commit 9858b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/version.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function(version_generate)
193193
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+)\\.([0-9]+)([-+].*)?$" "\\3"
194194
GIT_VERSION_PATCH "${GIT_VERSION}"
195195
)
196-
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+)\\.([0-9]+)([-+].*)?$" "\\4"
196+
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(([-+].*)?)$" "\\4"
197197
GIT_VERSION_SUFFIX "${GIT_VERSION}"
198198
)
199199
else()

0 commit comments

Comments
 (0)