From e317509e06b14e1388205805d9b2f2d621315fcb Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Sun, 23 Aug 2020 23:32:12 +0200 Subject: [PATCH] add git descr instead of tag in versioning output --- version.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.cmake b/version.cmake index 5162ec7..07b4e4f 100644 --- a/version.cmake +++ b/version.cmake @@ -19,7 +19,7 @@ else() COMMAND bash -c "git diff --quiet --exit-code || echo +" OUTPUT_VARIABLE GIT_DIFF) execute_process( - COMMAND git describe --exact-match --tags + COMMAND git describe #--exact-match --tags OUTPUT_VARIABLE GIT_TAG ERROR_QUIET) execute_process( COMMAND git rev-parse --abbrev-ref HEAD @@ -48,4 +48,4 @@ endif() if (NOT "${VERSION}" STREQUAL "${VERSION_}") file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/version.cc "${VERSION}") -endif() \ No newline at end of file +endif()