mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
Add BUILD_NUMBER option to CMake and version.py script
The BUILD_NUMBER option controls the last part of the version, allowing us to increase it for each build. This commit also adds version.py, which simply prints the version (e.g. "5.01") specified in CMakeLists.txt. The script will be used to determine the build number.
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
|
||||
set(BUILD_NUMBER CACHE STRING "The number of the current build.")
|
||||
|
||||
if ("${BUILD_NUMBER}" STREQUAL "")
|
||||
set(BUILD_NUMBER "0")
|
||||
endif()
|
||||
|
||||
project("SoftEther VPN"
|
||||
VERSION 5.01.9674
|
||||
VERSION "5.01.${BUILD_NUMBER}"
|
||||
LANGUAGES C
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user