mirror of https://github.com/milvus-io/milvus.git
show branch name
Former-commit-id: 8c5eca7a3372f553b13a349ad0e5407ec3683bf2pull/191/head
parent
8970efae49
commit
2aa7176d46
|
@ -36,6 +36,7 @@ MACRO (GET_GIT_BRANCH_NAME GIT_BRANCH_NAME)
|
|||
ENDMACRO (GET_GIT_BRANCH_NAME)
|
||||
|
||||
GET_GIT_BRANCH_NAME(GIT_BRANCH_NAME)
|
||||
message(STATUS "GIT_BRANCH_NAME = ${GIT_BRANCH_NAME}")
|
||||
if(NOT GIT_BRANCH_NAME STREQUAL "")
|
||||
string(REGEX REPLACE "\n" "" GIT_BRANCH_NAME ${GIT_BRANCH_NAME})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue