For release branch always keep distance zero

This commit is contained in:
Miodrag Milanovic 2026-06-09 18:20:17 +02:00
parent 7d40a0b667
commit 160a4e5dfc
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ function(yosys_extract_version)
# Build YOSYS_VERSION (just the version info).
set(YOSYS_VERSION "${YOSYS_VERSION_MAJOR}.${YOSYS_VERSION_MINOR}")
if (git_branch MATCHES "^release/v.+$")
set(git_distance 0)
endif()
if (git_distance STREQUAL "")
string(APPEND YOSYS_VERSION "+post")
else()