|
15 | 15 | #define SKYR_VERSION_MAJOR @skyr-url_VERSION_MAJOR@ |
16 | 16 | #define SKYR_VERSION_MINOR @skyr-url_VERSION_MINOR@ |
17 | 17 | #define SKYR_VERSION_PATCH @skyr-url_VERSION_PATCH@ |
18 | | -#define SKYR_VERSION_SHA1 "@skyr-url_VERSION_SHA1@" |
19 | 18 |
|
20 | 19 | #define SKYR_VERSION_STRING \ |
21 | 20 | SKYR_PREPROCESSOR_TO_STRING(SKYR_VERSION_MAJOR) "." \ |
|
24 | 23 | #define SKYR_RELEASE_STRING \ |
25 | 24 | SKYR_PREPROCESSOR_TO_STRING(SKYR_VERSION_MAJOR) "." \ |
26 | 25 | SKYR_PREPROCESSOR_TO_STRING(SKYR_VERSION_MINOR) "." \ |
27 | | - SKYR_PREPROCESSOR_TO_STRING(SKYR_VERSION_PATCH) "-" \ |
28 | | - SKYR_VERSION_SHA1 |
| 26 | + SKYR_PREPROCESSOR_TO_STRING(SKYR_VERSION_PATCH) "-" |
29 | 27 |
|
30 | 28 | namespace skyr { |
31 | 29 | /// \returns The majo, minor version as a tuple |
32 | 30 | static constexpr auto version() noexcept -> std::tuple<int, int> { |
33 | 31 | return {SKYR_VERSION_MAJOR, SKYR_VERSION_MINOR}; |
34 | 32 | } |
35 | 33 |
|
36 | | -/// \returns The major, minor, patch and Git sha1 as a tuple |
37 | | -static constexpr auto release() noexcept -> std::tuple<int, int, int, std::string_view> { |
38 | | - return {SKYR_VERSION_MAJOR, SKYR_VERSION_MINOR, SKYR_VERSION_PATCH, SKYR_VERSION_SHA1}; |
| 34 | +/// \returns The major, minor, patch as a tuple |
| 35 | +static constexpr auto release() noexcept -> std::tuple<int, int, int> { |
| 36 | + return {SKYR_VERSION_MAJOR, SKYR_VERSION_MINOR, SKYR_VERSION_PATCH}; |
39 | 37 | } |
40 | 38 |
|
41 | 39 | /// \returns The version as a string in the form MAJOR.MINOR |
42 | 40 | static constexpr auto version_string() noexcept -> std::string_view { |
43 | 41 | return SKYR_VERSION_STRING; |
44 | 42 | } |
45 | 43 |
|
46 | | -/// \returns The version as a string in the form MAJOR.MINOR.PATCH-SHA1 |
| 44 | +/// \returns The version as a string in the form MAJOR.MINOR.PATCH |
47 | 45 | static constexpr auto release_string() noexcept -> std::string_view { |
48 | 46 | return SKYR_RELEASE_STRING; |
49 | 47 | } |
|
0 commit comments