only strip string if not empty
This commit is contained in:
parent
4c360122c8
commit
0c61c54b73
@ -42,7 +42,10 @@ if(GIT_FOUND)
|
|||||||
OUTPUT_VARIABLE _git_branch
|
OUTPUT_VARIABLE _git_branch
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(_git_branch)
|
||||||
string(STRIP ${_git_branch} _git_branch)
|
string(STRIP ${_git_branch} _git_branch)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# CMAKE_CURRENT_LIST_DIR is undefined in CMake 2.8.2
|
# CMAKE_CURRENT_LIST_DIR is undefined in CMake 2.8.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user