mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-18 20:14:23 +01:00
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
1 file changed
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user