si vous voulez voir affiché une version 1.16.4-9-gd8f7d4c7f au lieu de gd8f7d4c7f, il faut modifier updateinfo.cmake de la façon suivante
diff --git a/UpdateInfo.cmake b/UpdateInfo.cmake
index 56736dcb5..743185a22 100644
--- a/UpdateInfo.cmake
+++ b/UpdateInfo.cmake
@@ -28,7 +28,7 @@ if(REL_INFO_FILE STREQUAL REL_INFO_FILE-NOTFOUND)
# Get version description.
# Depending on whether you checked out a branch (dev) or a tag (release),
# "git describe" will return "5.0-gtk2-2-g12345678" or "5.0-gtk2", respectively.
- execute_process(COMMAND ${GIT_CMD} describe --tags --always --exact-match OUTPUT_VARIABLE GIT_DESCRIBE OUTPUT_STRIP_TRAILING_WHITESPACE WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}")
+ execute_process(COMMAND ${GIT_CMD} describe --tags --always OUTPUT_VARIABLE GIT_DESCRIBE OUTPUT_STRIP_TRAILING_WHITESPACE WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}")
# Get branch name.
# Will return empty if you checked out a commit or tag. Empty string handled later.
Si on veut le faire manuellement, supprimer --exact-match
dans la ligne 31 de updateinfo.cmake