Skip to content

Commit

Permalink
chore: fix LEAN_SPECIAL_VERSION_DESC
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Jan 4, 2021
1 parent a8c0438 commit 34cf4bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion src/library/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 34cf4bc

Please sign in to comment.