Skip to content

Commit c2fe067

Browse files
authored
Merge pull request #12317 from velconia/change_to_0.0.0
Change latest to 0.0.0
2 parents e658762 + c0a551c commit c2fe067

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmake/version.cmake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ while ("${PADDLE_VERSION}" STREQUAL "")
2323
if (${GIT_BRANCH_NAME} MATCHES "release/${TAG_VERSION_REGEX}")
2424
# Check the tag is a correct version
2525
if (${GIT_TAG_NAME} MATCHES "${COMMIT_VERSION_REGEX}")
26-
# if no tag was found, set PADDLE_VERSION to latest
27-
set(PADDLE_VERSION "latest")
26+
# if no tag was found, set PADDLE_VERSION to 0.0.0 to represent latest
27+
set(PADDLE_VERSION "0.0.0")
2828
elseif (${GIT_TAG_NAME} MATCHES "v${TAG_VERSION_REGEX}")
2929
string(REPLACE "v" "" PADDLE_VERSION ${GIT_TAG_NAME})
3030
else() # otherwise, get the previous git tag name.
3131
set(tmp_version "${GIT_TAG_NAME}~1")
3232
endif()
33-
else() # otherwise, we always set PADDLE_VERSION to latest
34-
set(PADDLE_VERSION "latest")
33+
else()
34+
# otherwise, we always set PADDLE_VERSION to 0.0.0 to represent latest
35+
set(PADDLE_VERSION "0.0.0")
3536
endif()
3637
else()
3738
set(PADDLE_VERSION "0.0.0")

0 commit comments

Comments
 (0)