summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorManuel Bentele2021-08-26 11:01:26 +0200
committerManuel Bentele2021-08-26 11:01:26 +0200
commit5e79d7a54fe37716d51c979eddf436490f9b2fbb (patch)
tree2bd32324d55020314c6384005f6720098bd142e4 /cmake
parentFix spelling mistakes in Github action workflow (diff)
downloadxloop-5e79d7a54fe37716d51c979eddf436490f9b2fbb.tar.gz
xloop-5e79d7a54fe37716d51c979eddf436490f9b2fbb.tar.xz
xloop-5e79d7a54fe37716d51c979eddf436490f9b2fbb.zip
Read version from lightweight (non-annotated) tags, too
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Version.cmake b/cmake/Version.cmake
index 61fb0e6..f904dfa 100644
--- a/cmake/Version.cmake
+++ b/cmake/Version.cmake
@@ -43,7 +43,7 @@ macro(get_repository_version REPOSITORY_VERSION VERSION_HEADER_FILE VERSION_BUIL
set(GIT_VERSION "")
# 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