summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-08-25 16:11:58 +0200
committerManuel Bentele2021-08-25 16:11:58 +0200
commite6d1e64449b32ca320df8875d605d1f70cb13f17 (patch)
treed85f26660acbc39c7b8620da40c91785af0f01dd
parent[BUILD] Add Github action to publish packages for releases (diff)
downloaddnbd3-e6d1e64449b32ca320df8875d605d1f70cb13f17.tar.gz
dnbd3-e6d1e64449b32ca320df8875d605d1f70cb13f17.tar.xz
dnbd3-e6d1e64449b32ca320df8875d605d1f70cb13f17.zip
[BUILD] Read version from lightweight (non-annotated) tags, too
-rw-r--r--cmake/Version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Version.cmake b/cmake/Version.cmake
index 8a6a2fd..c121499 100644
--- a/cmake/Version.cmake
+++ b/cmake/Version.cmake
@@ -50,7 +50,7 @@ macro(get_repository_version REPOSITORY_VERSION REPOSITORY_BRANCH VERSION_HEADER
set(GIT_BRANCH "${CMAKE_MATCH_1}")
else(EXISTS ${VERSION_HEADER_FILE})
# get detailed Git version information from Git repository
- execute_process(COMMAND ${GIT_EXECUTABLE} describe HEAD
+ execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags HEAD
WORKING_DIRECTORY ${REPOSITORY_DIR}
OUTPUT_VARIABLE GIT_VERSION_VERBOSE
RESULT_VARIABLE GIT_RETURN_CODE