From ba76bfe5a65b28aa9426a88e4a7da01c32dc09fc Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Sun, 31 Jul 2016 16:16:54 +0200 Subject: [PATCH] Strip prefix 'g' from the version hash (#2952) --- cmake/modules/VersionInfo.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/VersionInfo.cmake b/cmake/modules/VersionInfo.cmake index 23fde3639..8b449a3be 100644 --- a/cmake/modules/VersionInfo.cmake +++ b/cmake/modules/VersionInfo.cmake @@ -18,6 +18,7 @@ IF(GIT_FOUND AND NOT FORCE_VERSION) LIST(GET TAG_LIST 0 FORCE_VERSION) LIST(GET TAG_LIST 2 COMMIT_HASH) STRING(REPLACE "v" "" FORCE_VERSION "${FORCE_VERSION}") + STRING(REPLACE "g" "" COMMIT_HASH "${COMMIT_HASH}") SET(FORCE_VERSION "${FORCE_VERSION}-${COMMIT_HASH}") ENDIF() ENDIF()