Permalink
Browse files

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

  • Loading branch information...
orbea authored and gregory38 committed Jan 10, 2018
1 parent fbdd0f4 commit 49cd6bc7822097d0734e6388d117fe8ab502b7a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmake/Pcsx2Utils.cmake
View
@@ -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()

0 comments on commit 49cd6bc

Please sign in to comment.