Skip to content

Commit

Permalink
test github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niemilau committed Oct 22, 2024
1 parent 21d59d1 commit cb28b87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/GenerateProjectVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ function(GenerateProjectVersion INOUT_VERSION)
if (GIT_DESCRIBE_RESULT EQUAL 0)
# tag is vX.Y.Z, strip the v
string(REGEX REPLACE "^v" "" GIT_TAG ${GIT_TAG})

# Strip all extra from semantic version. So leaves only X.Y.Z
string(REGEX REPLACE "^([0-9]+\\.[0-9]+\\.[0-9]+).*" "\\1" LOCAL_VERSION ${GIT_TAG})
endif()

# Strip all extra from semantic version. So leaves only X.Y.Z
string(REGEX REPLACE "^([0-9]+\\.[0-9]+\\.[0-9]+).*" "\\1" LOCAL_VERSION ${GIT_TAG})

endif()
endif()
Expand Down

0 comments on commit cb28b87

Please sign in to comment.