cmake: Don't print a git describe error with shallow clones.

This commit is contained in:
orbea 2018-01-09 18:17:15 -08:00 committed by Gregory Hainaut
parent fbdd0f4394
commit 49cd6bc782
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function(write_svnrev_h)
string(REGEX REPLACE "[%:\\-]" "" PCSX2_WC_TIME "${PCSX2_WC_TIME}")
string(REGEX REPLACE "([0-9]+) ([0-9]+).*" "\\1\\2" PCSX2_WC_TIME "${PCSX2_WC_TIME}")
EXECUTE_PROCESS(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND ${GIT_EXECUTABLE} describe
EXECUTE_PROCESS(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND ${GIT_EXECUTABLE} describe --always
OUTPUT_VARIABLE PCSX2_GIT_REV
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()