From c0a551cb08a6564f9703e4374d8a40eeb874e91f Mon Sep 17 00:00:00 2001 From: minqiyang Date: Mon, 23 Jul 2018 21:44:38 +0800 Subject: [PATCH] Change latest to 0.0.0 --- cmake/version.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/version.cmake b/cmake/version.cmake index 2fa9df4211d..ac10bdf067b 100644 --- a/cmake/version.cmake +++ b/cmake/version.cmake @@ -23,15 +23,16 @@ while ("${PADDLE_VERSION}" STREQUAL "") if (${GIT_BRANCH_NAME} MATCHES "release/${TAG_VERSION_REGEX}") # Check the tag is a correct version if (${GIT_TAG_NAME} MATCHES "${COMMIT_VERSION_REGEX}") - # if no tag was found, set PADDLE_VERSION to latest - set(PADDLE_VERSION "latest") + # if no tag was found, set PADDLE_VERSION to 0.0.0 to represent latest + set(PADDLE_VERSION "0.0.0") elseif (${GIT_TAG_NAME} MATCHES "v${TAG_VERSION_REGEX}") string(REPLACE "v" "" PADDLE_VERSION ${GIT_TAG_NAME}) else() # otherwise, get the previous git tag name. set(tmp_version "${GIT_TAG_NAME}~1") endif() - else() # otherwise, we always set PADDLE_VERSION to latest - set(PADDLE_VERSION "latest") + else() + # otherwise, we always set PADDLE_VERSION to 0.0.0 to represent latest + set(PADDLE_VERSION "0.0.0") endif() else() set(PADDLE_VERSION "0.0.0") -- GitLab