Merge pull request #7987 from sergiobenrocha2/master

Fix .git/ dir detection on git-version.cmake.
This commit is contained in:
Unknown W. Brackets 2015-09-20 21:32:52 -07:00
commit a973ba7009

View File

@ -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