From 2ccf0756bc6481b87612f267fdab99742454bff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Emil=20Schulz=20=C3=98stergaard?= Date: Fri, 3 Jul 2026 11:15:57 +0200 Subject: [PATCH] cmake: use commit sha as version when no tag is available --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7777703..e2b353e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_P # Make a version file containing the current version from git. # include(GetGitRevisionDescription) -git_describe(VERSION --tags --dirty=-dirty) +git_describe(VERSION --tags --always --dirty=-dirty) #parse the version information into pieces. string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" VERSION_MAJOR "${VERSION}")