From c4bdea298730d4aca692f46b72041b8fcaa030f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Ba=C5=82ys?= Date: Fri, 23 Oct 2026 23:54:50 +0200 Subject: [PATCH] [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 --- etc/cmake/functions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/cmake/functions.cmake b/etc/cmake/functions.cmake index f616bee05..c938092c8 100755 --- a/etc/cmake/functions.cmake +++ b/etc/cmake/functions.cmake @@ -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