Strip prefix 'g' from the version hash (#2952)

This commit is contained in:
Oskar Wallgren
2016-07-31 16:16:54 +02:00
committed by Tres Finocchiaro
parent f9f7b50eb0
commit ba76bfe5a6

View File

@@ -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()