show branch name

Former-commit-id: 8c5eca7a3372f553b13a349ad0e5407ec3683bf2
pull/191/head
starlord 2019-10-30 11:21:28 +08:00
parent 8970efae49
commit 2aa7176d46
1 changed files with 1 additions and 0 deletions

View File

@ -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()