From e1e7986c00912a89b644ff60a8e63189f8ba1ac5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 25 Jul 2019 08:23:11 -0400 Subject: CMakeVersion: Consider Git even with just a `.git` file --- Source/CMakeVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index e406b4c..02cf748 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -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) -- cgit v0.12