mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-04 15:06:25 +00:00
Merge pull request #7987 from sergiobenrocha2/master
Fix .git/ dir detection on git-version.cmake.
This commit is contained in:
commit
a973ba7009
@ -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