From 30fc8596f77d38408b9234e6fb5ef7a5ceef6d41 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 7 Dec 2023 10:58:17 +0100 Subject: [PATCH] Git version detection: ensure correct tag is returned if present --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92849f490..0237a70cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ if(MANUAL_REVISION_UNSET) if(GIT_FOUND) message(STATUS "Found Git ${GIT_VERSION_STRING}") execute_process( - COMMAND ${GIT_EXECUTABLE} describe "--dirty" + COMMAND ${GIT_EXECUTABLE} describe "--dirty" "--always" "--tags" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} RESULT_VARIABLE res_var OUTPUT_VARIABLE GIT_COMMIT_ID