diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,12 @@ # Copyright (c) 2017 The Bitcoin developers cmake_minimum_required(VERSION 3.5) -project(bitcoin-abc) +project(bitcoin-abc + VERSION 0.20.2.0 + # TODO add description and homepage when CMake > 3.12 is enforced. + # DESCRIPTION "Bitcoin ABC is a full node implementation of the Bitcoin Cash protocol." + # HOMEPAGE "https://www.bitcoinabc.org" +) # Add path for custom modules set(CMAKE_MODULE_PATH diff --git a/doc/release-process.md b/doc/release-process.md --- a/doc/release-process.md +++ b/doc/release-process.md @@ -37,7 +37,7 @@ 5. Increment version number for the next release in: - doc/release-notes.md (and copy existing one to versioned doc/release-notes/*.md) - configure.ac - - src/config/CMakeLists.txt + - CMakeLists.txt - contrib/gitian-descriptors/*.yml (before a new major release) - contrib/seeds/makeseeds.py (only after a new major release) diff --git a/src/config/CMakeLists.txt b/src/config/CMakeLists.txt --- a/src/config/CMakeLists.txt +++ b/src/config/CMakeLists.txt @@ -11,10 +11,10 @@ set(PACKAGE_NAME "Bitcoin ABC" CACHE STRING "Package name") # Version -set(CLIENT_VERSION_MAJOR 0 CACHE STRING "Major version number") -set(CLIENT_VERSION_MINOR 20 CACHE STRING "Minor version number") -set(CLIENT_VERSION_REVISION 2 CACHE STRING "Revision version number") -set(CLIENT_VERSION_BUILD 0 CACHE STRING "Build version number") +set(CLIENT_VERSION_MAJOR ${bitcoin-abc_VERSION_MAJOR} CACHE STRING "Major version number") +set(CLIENT_VERSION_MINOR ${bitcoin-abc_VERSION_MINOR} CACHE STRING "Minor version number") +set(CLIENT_VERSION_REVISION ${bitcoin-abc_VERSION_PATCH} CACHE STRING "Revision version number") +set(CLIENT_VERSION_BUILD ${bitcoin-abc_VERSION_TWEAK} CACHE STRING "Build version number") option(CLIENT_VERSION_IS_RELEASE "Build a release version" OFF)