mirror of
https://github.com/espressif/openthread.git
synced 2026-11-05 14:03:14 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user