Strip prefix 'g' from the version hash (#2952)
This commit is contained in:
committed by
Tres Finocchiaro
parent
f9f7b50eb0
commit
ba76bfe5a6
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user