Browse Source

Merge PR #1395: Add warning about build number, initialize to 5180

Davide Beatrici 4 years ago
parent
commit
56bb573b17
1 changed files with 8 additions and 1 deletions
  1. 8 1
      CMakeLists.txt

+ 8 - 1
CMakeLists.txt

@@ -3,7 +3,14 @@ cmake_minimum_required(VERSION 3.10)
 set(BUILD_NUMBER CACHE STRING "The number of the current build.")
 
 if ("${BUILD_NUMBER}" STREQUAL "")
-	set(BUILD_NUMBER "0")
+	set(BUILD_NUMBER "5180")
+endif()
+
+if (BUILD_NUMBER LESS 5180)
+	message(WARNING
+		"Setting BUILD_NUMBER to a value less than 5180 will break compatibility with client binaries distributed by SoftEther Corporation. "
+		"Set to a value greater than or equal to 5180 if you want such clients to work properly.\n"
+		"For detailed info: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1392#issuecomment-867348281")
 endif()
 
 project("SoftEther VPN"