From 381313aa8a561741c9e22c8eebe042e273ab191d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 20 Oct 2020 18:18:14 +0100 Subject: [PATCH] CMake: Use fixed commit hash abbreviation length in FindVersion --- cmake/scripts/FindVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/scripts/FindVersion.cmake b/cmake/scripts/FindVersion.cmake index e58d07fd04..4fc0f17374 100644 --- a/cmake/scripts/FindVersion.cmake +++ b/cmake/scripts/FindVersion.cmake @@ -61,7 +61,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git") string(REGEX REPLACE ".*/" "" BRANCH "${BRANCH}") # Get the tag - execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags + execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=9 OUTPUT_VARIABLE TAG OUTPUT_STRIP_TRAILING_WHITESPACE WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}