未验证 提交 48b27229 编写于 作者: 石晓伟 提交者: GitHub

fix version.cmake, test=develop (#20606)

上级 ae4ddbc8
......@@ -59,7 +59,8 @@ while ("${PADDLE_VERSION}" STREQUAL "")
endif()
endwhile()
string(REPLACE "." ";" PADDLE_VER_LIST ${PADDLE_VERSION})
string(REPLACE "-" "." PADDLE_VER_LIST ${PADDLE_VERSION})
string(REPLACE "." ";" PADDLE_VER_LIST ${PADDLE_VER_LIST})
list(GET PADDLE_VER_LIST 0 PADDLE_MAJOR_VER)
list(GET PADDLE_VER_LIST 1 PADDLE_MINOR_VER)
list(GET PADDLE_VER_LIST 2 PADDLE_PATCH_VER)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册