[version.cmake] Add reminder to synchronize git-describe with docs/lgrelease.py

This commit is contained in:
Jonathan Rubenstein 2021-12-27 18:12:57 +02:00 committed by Geoffrey McRae
parent 142902b7b3
commit aa5922a1b4

View File

@ -2,6 +2,7 @@ if (EXISTS ${PROJECT_TOP}/VERSION)
file(READ ${PROJECT_TOP}/VERSION GIT_REV) file(READ ${PROJECT_TOP}/VERSION GIT_REV)
else() else()
execute_process( execute_process(
# Synchronize docs/lgrelease.py if updated
COMMAND git describe --always --abbrev=10 --dirty=+ --tags COMMAND git describe --always --abbrev=10 --dirty=+ --tags
WORKING_DIRECTORY "${PROJECT_TOP}" WORKING_DIRECTORY "${PROJECT_TOP}"
OUTPUT_VARIABLE GIT_REV OUTPUT_VARIABLE GIT_REV