1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-06 09:17:07 +02: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}")
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})
list(GET VERSION_LIST 0 VERSION_STRING)