Skip to content

Commit

Permalink
show branch name
Browse files Browse the repository at this point in the history
Former-commit-id: 8c5eca7a3372f553b13a349ad0e5407ec3683bf2
  • Loading branch information
cxie committed Oct 30, 2019
1 parent 8970efa commit 2aa7176
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2aa7176

Please sign in to comment.