Skip to content

Commit

Permalink
Don't set tweak in version if equal to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Oct 2, 2023
1 parent f4359fc commit 9fc676f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ declare_cache_var(ZENOHC_CARGO_FLAGS "" STRING "Additional cargo flags")
set(project_version "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
if(NOT PROJECT_VERSION_TWEAK)
set(project_version "${project_version}-dev")
elseif(PROJECT_VERSION_TWEAK EQUAL 1)
set(project_version "${project_version}-rc")
elseif(PROJECT_VERSION_TWEAK LESS 255)
set(project_version "${project_version}-rc.${PROJECT_VERSION_TWEAK}")
endif()
Expand Down

0 comments on commit 9fc676f

Please sign in to comment.