mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Fix .git/ dir detection on git-version.cmake.
This commit is contained in:
parent
906b62037a
commit
989ec11158
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user