Implement always adding git ref to version string (#430)

Fixes #427
This commit is contained in:
Michael Legleux
2022-12-06 08:23:33 -08:00
committed by GitHub
parent a0d173feb8
commit 3ec5755930
2 changed files with 14 additions and 14 deletions

View File

@@ -13,16 +13,14 @@ namespace Build {
//------------------------------------------------------------------------------
// clang-format off
char const* const versionString = "1.0.3"
// clang-format on
// clang-format on
#if defined(DEBUG) || defined(SANITIZER)
"+"
#ifdef CLIO_GIT_COMMIT_HASH
CLIO_GIT_COMMIT_HASH
"."
#ifdef CLIO_BUILD
CLIO_BUILD
#endif
#ifdef DEBUG
"DEBUG"
".DEBUG"
#ifdef SANITIZER
"."
#endif
@@ -31,7 +29,7 @@ char const* const versionString = "1.0.3"
#ifdef SANITIZER
BOOST_PP_STRINGIZE(SANITIZER)
#endif
#endif
#ifdef PKG
"-release"
#endif