HomePhabricator

[CMAKE] Add a target to print the current version number

Description

[CMAKE] Add a target to print the current version number

Summary:
It can be difficult to search for the project version number, because of
the CMake syntax that makes it likely to grep the version from unrelated
packages.
This diff adds a simple print-version target that will display the
current version and allow for easy grepping.

Test Plan:

ninja print-version
ninja print-version | grep -E "[0-9]+\.[0-9]+\.[0-9]+"

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7359

Details

Provenance
FabienAuthored on Sep 4 2020, 08:51
FabienPushed on Sep 4 2020, 14:29
Reviewer
Restricted Project
Differential Revision
D7359: [CMAKE] Add a target to print the current version number
Parents
rABC07debf4d3549: [CI] Allow for describing the build from the configuration file
Branches
Unknown
Tags
Unknown