1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00

Fix build cmake parsing using lowercase v

This commit is contained in:
Elias Steurer 2023-08-19 10:04:30 +02:00
parent 59cb5d0dc5
commit c56fb68202

View File

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