Skip to content

Commit ef2e9ed

Browse files
author
Oleg Samarin
committed
Added checking for the github version correctness
(cherry picked from commit b9769f1)
1 parent a439921 commit ef2e9ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ message(STATUS "Current git version ${CURRENT_GIT_VERSION}")
8585
################################################################################
8686
# Version information
8787
################################################################################
88+
if(DEFINED VERSION AND NOT VERSION STREQUAL CMAKE_PROJECT_VERSION)
89+
message(FATAL_ERROR "The version parameter ${VERSION} differs from the project version ${CMAKE_PROJECT_VERSION}")
90+
endif()
8891
if (FDB_RELEASE_CANDIDATE)
8992
set(FDB_RELEASE_CANDIDATE_VERSION 1 CACHE STRING "release candidate version")
9093
set(FDB_VERSION ${PROJECT_VERSION}-rc${FDB_RELEASE_CANDIDATE_VERSION})

0 commit comments

Comments
 (0)