mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
CMakeVersion: Consider Git even with just a .git file
This commit is contained in:
1 parent
564bcb4cb3
commit
e1e7986c00
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user