Skip to content

Commit

Permalink
Added checking for the github version correctness
Browse files Browse the repository at this point in the history
(cherry picked from commit b9769f1)
  • Loading branch information
Oleg Samarin committed Apr 7, 2023
1 parent a439921 commit ef2e9ed
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 ef2e9ed

Please sign in to comment.