From e0906843d0859900fd89ffca4c32955d02aa87c4 Mon Sep 17 00:00:00 2001 From: septs Date: Sat, 16 Mar 2024 17:25:22 +0800 Subject: [PATCH] fix version --- cmake/git-version.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/git-version.cmake b/cmake/git-version.cmake index 0f41f9e..be226fd 100644 --- a/cmake/git-version.cmake +++ b/cmake/git-version.cmake @@ -4,7 +4,7 @@ if(GIT_EXECUTABLE) get_filename_component(SRC_DIR ${SRC} DIRECTORY) # Generate a git-describe version string from Git repository tags execute_process( - COMMAND ${GIT_EXECUTABLE} describe --tags --dirty --match "v*" + COMMAND ${GIT_EXECUTABLE} describe --always --tags --dirty --match "v*" WORKING_DIRECTORY ${SRC_DIR} OUTPUT_VARIABLE GIT_DESCRIBE_VERSION RESULT_VARIABLE GIT_DESCRIBE_ERROR_CODE