mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #420 from micove/git-cmake
Don't assume .git exists just because git is installed.
This commit is contained in:
commit
3c11e759a2
|
@ -37,9 +37,8 @@ function(detectOperatingSystem)
|
|||
endfunction()
|
||||
|
||||
function(write_svnrev_h)
|
||||
find_package(Git)
|
||||
set(PCSX2_WC_TIME 0)
|
||||
if (GIT_FOUND)
|
||||
if (GIT_FOUND AND EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
||||
EXECUTE_PROCESS(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND ${GIT_EXECUTABLE} show -s --format=%ci HEAD
|
||||
OUTPUT_VARIABLE PCSX2_WC_TIME
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
|
Loading…
Reference in New Issue