From 3d5733972939f31213c8096dbaa6faddc879dfeb Mon Sep 17 00:00:00 2001 From: Simon Kagstrom Date: Mon, 23 Sep 2024 06:45:53 +0200 Subject: [PATCH] Issue #465: cmake: Use --always to allow git describe without tags --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d81c5a8..c21b8bee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ if (EXISTS "${CMAKE_SOURCE_DIR}/.git") execute_process (COMMAND "${GIT_EXECUTABLE}" "--git-dir=${CMAKE_SOURCE_DIR}/.git" describe + --always --abbrev=4 --tags HEAD