Skip to content

Commit

Permalink
Merge pull request #1504 from DimitriPapadopoulos/PROJECT_NAME_VERSION
Browse files Browse the repository at this point in the history
Do not prepend `v` to version
  • Loading branch information
cookpa authored Mar 24, 2023
2 parents 276cf07 + 1d25c8d commit 0959935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if ( NOT ${PROJECT_NAME}_VERSION_HASH STREQUAL "GITDIR-NOTFOUND" )
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION}${${PROJECT_NAME}_VERSION_RC}")
endif()

set(${PROJECT_NAME}_VERSION "v${_${PROJECT_NAME}_VERSION_NUMBER}")
set(${PROJECT_NAME}_VERSION "${_${PROJECT_NAME}_VERSION_NUMBER}")

if(DEFINED ${PROJECT_NAME}_VERSION_POST)
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION}.post${${PROJECT_NAME}_VERSION_POST}")
Expand All @@ -76,7 +76,7 @@ if ( NOT ${PROJECT_NAME}_VERSION_HASH STREQUAL "GITDIR-NOTFOUND" )
else()
# No git version information
# Set version information from numbers only
set(${PROJECT_NAME}_VERSION "v${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}")
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}")

# Set to 1 for release commits only
set(${PROJECT_NAME}_RELEASE_VERSION 0)
Expand Down

0 comments on commit 0959935

Please sign in to comment.