chore: fix LEAN_SPECIAL_VERSION_DESC
This commit is contained in:
parent
a8c04388bb
commit
34cf4bc3ff
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ set(LEAN_VERSION_MAJOR 4)
|
|||
set(LEAN_VERSION_MINOR 0)
|
||||
set(LEAN_VERSION_PATCH 0)
|
||||
set(LEAN_VERSION_IS_RELEASE 1) # This number is 1 in the release revision, and 0 otherwise.
|
||||
set(LEAN_SPECIAL_VERSION_DESC "4.0.0-M1" CACHE STRING "Additional version description like 'nightly-2018-03-11'")
|
||||
set(LEAN_SPECIAL_VERSION_DESC "m1" CACHE STRING "Additional version description like 'nightly-2018-03-11'")
|
||||
set(LEAN_VERSION_STRING "${LEAN_VERSION_MAJOR}.${LEAN_VERSION_MINOR}.${LEAN_VERSION_PATCH}")
|
||||
if (LEAN_SPECIAL_VERSION_DESC)
|
||||
set(LEAN_VERSION_STRING "${LEAN_VERSION_STRING}-${LEAN_SPECIAL_VERSION_DESC}")
|
||||
|
|
|
|||
|
|
@ -1060,7 +1060,7 @@ void initialize_library_util() {
|
|||
out << LEAN_VERSION_MAJOR << "."
|
||||
<< LEAN_VERSION_MINOR << "." << LEAN_VERSION_PATCH;
|
||||
if (std::strlen(LEAN_SPECIAL_VERSION_DESC) > 0) {
|
||||
out << ", " << LEAN_SPECIAL_VERSION_DESC;
|
||||
out << "-" << LEAN_SPECIAL_VERSION_DESC;
|
||||
}
|
||||
if (std::strcmp(LEAN_GITHASH, "GITDIR-NOTFOUND") == 0) {
|
||||
if (std::strcmp(LEAN_PACKAGE_VERSION, "NOT-FOUND") != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue