From 9d452a179e048b2f7a0162dd03bc1bd0a2914656 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 9 Jun 2019 22:21:49 +0200 Subject: [PATCH] Make git commit parse work even when tag is at the commit --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f95f42b8..56df31705 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,8 +70,8 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/") ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) if(NOT res) - string(REGEX REPLACE "^v([0-9]+)\.([0-9]+)\.([0-9]+)-" "" git_commit ${out}) - set(sdrangel_VERSION_SUFFIX "-${git_commit}") + string(REGEX REPLACE "^v([0-9]+)\.([0-9]+)\.([0-9]+)" "" git_commit ${out}) + set(sdrangel_VERSION_SUFFIX "${git_commit}") endif() endif()