From 079035dbf4890e667c5e931295a1c24f28d9c0df Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 15 Feb 2026 17:54:30 +0100 Subject: build: Add git hash to version string Embed git commit hash into version.h and irmd --version output using git describe. Regenerated at build time to stay current across commits. Ouroboros version MAJOR.MINOR.PATCH (TAG-COMMITS-GHASH-dirty) Example for dirty work tree (uncommitted changes): $ irmd --version Ouroboros version 0.22.0 (0.22.0-36-g86dba544-dirty) Example after commit: $ sudo irmd --version Ouroboros version 0.22.0-37-g55fa9445 Officical release (on tag): Ouroboros version 0.22.0 Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- cmake/include.cmake | 3 --- 1 file changed, 3 deletions(-) (limited to 'cmake/include.cmake') diff --git a/cmake/include.cmake b/cmake/include.cmake index ace51d0f..414ea0ad 100644 --- a/cmake/include.cmake +++ b/cmake/include.cmake @@ -2,9 +2,6 @@ set(HEADERS_SOURCE_DIR "${CMAKE_SOURCE_DIR}/include/ouroboros") # SOCK_BUF_SIZE is in cmake/config/global.cmake -configure_file("${CMAKE_SOURCE_DIR}/include/ouroboros/version.h.in" - "${CMAKE_BINARY_DIR}/include/ouroboros/version.h" @ONLY) - configure_file("${CMAKE_SOURCE_DIR}/include/ouroboros/sockets.h.in" "${CMAKE_BINARY_DIR}/include/ouroboros/sockets.h" @ONLY) -- cgit v1.2.3