Fix git revision string (#6083)
This commit is contained in:
parent
da648fd08f
commit
41ed505277
|
@ -127,6 +127,7 @@ else(FORCE_GIT_REVISION)
|
||||||
|
|
||||||
if(NOT GIT_EXECUTABLE-NOTFOUND)
|
if(NOT GIT_EXECUTABLE-NOTFOUND)
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags
|
execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags
|
||||||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
RESULT_VARIABLE GIT_INFO_RESULT
|
RESULT_VARIABLE GIT_INFO_RESULT
|
||||||
OUTPUT_VARIABLE GIT_REV
|
OUTPUT_VARIABLE GIT_REV
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
|
|
Loading…
Reference in New Issue