소스 검색

* Fixed bug: Git commands they do not output something on stdout are handles as error

master
bergmann 4 년 전
부모
커밋
29bc08806b
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -2
      git_helper.cmake

+ 1
- 2
git_helper.cmake 파일 보기

@@ -10,8 +10,7 @@ Function ( GitExecute COMMAND FORCE OUT_RESULT OUT_SUCCESS )
ERROR_VARIABLE ERROR_VARIABLE
GIT_ERR ) GIT_ERR )
If ( NOT ${GIT_RET} EQUAL 0 If ( NOT ${GIT_RET} EQUAL 0
OR NOT "${GIT_ERR}" STREQUAL ""
OR "${GIT_REV}" STREQUAL "" )
OR NOT "${GIT_ERR}" STREQUAL "" )
If ( FORCE ) If ( FORCE )
Message ( FATAL_ERROR "Unable to execute git command (command=${COMMAND} out=${GIT_REV}; err=${GIT_ERR}; ret=${GIT_RET})" ) Message ( FATAL_ERROR "Unable to execute git command (command=${COMMAND} out=${GIT_REV}; err=${GIT_ERR}; ret=${GIT_RET})" )
Else ( ) Else ( )


불러오는 중...
취소
저장