mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-26 04:33:06 +01:00
Fix build cmake parsing using lowercase v
This commit is contained in:
parent
59cb5d0dc5
commit
c56fb68202
@ -22,7 +22,7 @@ function(get_project_version VERSION_VAR)
|
|||||||
)
|
)
|
||||||
|
|
||||||
message(STATUS "Parsing git tag: ${GIT_VERSION}")
|
message(STATUS "Parsing git tag: ${GIT_VERSION}")
|
||||||
string(REPLACE "V" "" STRIPPED_VERSION "${GIT_VERSION}") # Remove the 'V' prefix
|
string(REPLACE "v" "" STRIPPED_VERSION "${GIT_VERSION}") # Remove the 'V' prefix
|
||||||
string(REPLACE "-" ";" VERSION_LIST ${STRIPPED_VERSION})
|
string(REPLACE "-" ";" VERSION_LIST ${STRIPPED_VERSION})
|
||||||
list(GET VERSION_LIST 0 VERSION_STRING)
|
list(GET VERSION_LIST 0 VERSION_STRING)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user