CMakeVersion: Consider Git even with just a .git file

This commit is contained in:
Brad King
2019-07-25 08:23:11 -04:00
parent 564bcb4cb3
commit e1e7986c00

View File

@@ -14,7 +14,7 @@ else()
set(CMake_VERSION_IS_RELEASE 0)
# Try to identify the current development source version.
set(CMake_VERSION_SOURCE "")
if(EXISTS ${CMake_SOURCE_DIR}/.git/HEAD)
if(EXISTS ${CMake_SOURCE_DIR}/.git)
find_program(GIT_EXECUTABLE NAMES git git.cmd)
mark_as_advanced(GIT_EXECUTABLE)
if(GIT_EXECUTABLE)