Skip to content

Commit

Permalink
Added checking for the github version correctness (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Apr 7, 2023
1 parent 9779c5f commit 62c8861
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ message(STATUS "Current git version ${CURRENT_GIT_VERSION}")
################################################################################
# Version information
################################################################################
if(DEFINED VERSION AND NOT VERSION STREQUAL CMAKE_PROJECT_VERSION)
message(FATAL_ERROR "The version parameter ${VERSION} differs from the project version ${CMAKE_PROJECT_VERSION}")
endif()
if (FDB_RELEASE_CANDIDATE)
set(FDB_RELEASE_CANDIDATE_VERSION 1 CACHE STRING "release candidate version")
set(FDB_VERSION ${PROJECT_VERSION}-rc${FDB_RELEASE_CANDIDATE_VERSION})
Expand Down

0 comments on commit 62c8861

Please sign in to comment.