diff options
author | Robert Adam <dev@robert-adam.de> | 2020-09-02 10:22:16 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-09-02 19:30:33 +0300 |
commit | 40090d297f03977906557d4dfd2fd29067cf680d (patch) | |
tree | 51c2686d81d88e7ee46a8d728c01c4f3b4fab3d6 /CMakeLists.txt | |
parent | 8bdf32d4808135e8e8d6cba004e36b4a6ead0f42 (diff) |
MAINT: Make use of cmake configure for version
Instead of having to change the version number and the build year in all
those files manually, we let cmake do the work by replacing the
respective values in templates.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 31b92c8ff..e17cdd6f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,9 @@ set(version "1.4.0" CACHE STRING "Project version") string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]" version_short ${version}) +# Get compilation year +string(TIMESTAMP MUMBLE_BUILD_YEAR "%Y") + project(Mumble VERSION ${version_short} DESCRIPTION "Open source, low-latency, high quality voice chat." |