From 160a4e5dfc7f4388d9216d73d2f3c6c0038ed40b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 9 Jun 2026 18:20:17 +0200 Subject: [PATCH] For release branch always keep distance zero --- cmake/YosysVersion.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/YosysVersion.cmake b/cmake/YosysVersion.cmake index 125a87615..da7aa0aab 100644 --- a/cmake/YosysVersion.cmake +++ b/cmake/YosysVersion.cmake @@ -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()