Skip to content

Commit

Permalink
Change: Remove leading zero from gsad --version output
Browse files Browse the repository at this point in the history
Use 22.8.0 instead of 22.08.0 as the project switched to semantic
versioning which doesn't actually allow the leading zero.
  • Loading branch information
bjoernricks committed Jan 30, 2024
1 parent 3995bdf commit 89f758a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmake/ProjectVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ endif (GIT_REVISION)

string(LENGTH ${PROJECT_VERSION_MINOR} PROJECT_VERSION_MINOR_LENGTH)

if (PROJECT_VERSION_MINOR_LENGTH LESS 2)
set (PROJECT_VERSION_MINOR_STRING "0${PROJECT_VERSION_MINOR}")
else ()
set (PROJECT_VERSION_MINOR_STRING "${PROJECT_VERSION_MINOR}")
endif ()
set (PROJECT_VERSION_MINOR_STRING "${PROJECT_VERSION_MINOR}")

# If PROJECT_BETA_RELEASE is set to "0", the version string will be set to:
# "major.minor+alpha"
Expand Down

0 comments on commit 89f758a

Please sign in to comment.