[cmake] use lightweight tags in ot_git_version git describe (#13777)

ot_git_version() runs git describe with --tags so lightweight
release tags (e.g. v2026.10.0) are used for OT_PACKAGE_VERSION
in ot-cli, ot-daemon, and other PACKAGE_VERSION consumers.

Signed-off-by: Arkadiusz Balys <[email protected]>
This commit is contained in:
Arkadiusz Bałys
2026-10-23 14:54:50 -07:00
committed by GitHub
parent 056c4cd415
commit c4bdea2987
+1 -1
View File
@@ -28,7 +28,7 @@
function(ot_git_version git_version)
execute_process(
COMMAND git describe --dirty --always
COMMAND git describe --tags --dirty --always
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_REV OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET