Skip to content

Commit

Permalink
fix version for X.Y.Z.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Oct 21, 2024
1 parent 31d5166 commit 2f8c571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if(NOT DEFINED PROJECT_VERSION_TWEAK)
set(project_version "${project_version}")
elseif(PROJECT_VERSION_TWEAK EQUAL 0)
set(project_version "${project_version}-dev")
elseif(PROJECT_VERSION_TWEAK GREATER 1)
elseif(PROJECT_VERSION_TWEAK GREATER 0)
set(project_version "${project_version}-pre.${PROJECT_VERSION_TWEAK}")
endif()
status_print(project_version)
Expand Down
2 changes: 1 addition & 1 deletion install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if(NOT CPACK_PACKAGE_VERSION)
set(CPACK_PACKAGE_VERSION ${SEM_VER})
elseif(PROJECT_VERSION_TWEAK EQUAL 0)
set(CPACK_PACKAGE_VERSION "${SEM_VER}~dev-1")
elseif(PROJECT_VERSION_TWEAK GREATER 1)
elseif(PROJECT_VERSION_TWEAK GREATER 0)
set(CPACK_PACKAGE_VERSION "${SEM_VER}~pre.${PROJECT_VERSION_TWEAK}-1")
endif()
endif()
Expand Down

0 comments on commit 2f8c571

Please sign in to comment.