cmake: Always use long git describe

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-02-06 16:24:43 +01:00
parent 26a76e0451
commit e59a33423e

View file

@ -60,7 +60,7 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git")
set(GIT_ERROR)
execute_process(
COMMAND "${GIT}" describe --tags --match "[0-9]*.[0-9]*.[0-9]*" --abbrev=8 HEAD
COMMAND "${GIT}" describe --tags --long --match "[0-9]*.[0-9]*.[0-9]*" --abbrev=8 HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
RESULT_VARIABLE GIT_RESULT
OUTPUT_VARIABLE GIT_OUTPUT