mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Fix .git/ dir detection on git-version.cmake.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ set(GIT_VERSION "unknown")
|
||||
set(GIT_VERSION_UPDATE "1")
|
||||
|
||||
find_package(Git)
|
||||
if(GIT_FOUND AND EXISTS ".git")
|
||||
if(GIT_FOUND AND EXISTS "${SOURCE_DIR}/.git/")
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
|
||||
WORKING_DIRECTORY ${SOURCE_DIR}
|
||||
RESULT_VARIABLE exit_code
|
||||
|
||||
Reference in New Issue
Block a user