cmake: strip prefixed versions when passed in
This commit is contained in:
parent
8e37337c4c
commit
f39bcb0cd0
1 changed files with 2 additions and 2 deletions
|
|
@ -10,9 +10,9 @@ if(NOT DEFINED VERSION)
|
|||
if("${VERSION}" STREQUAL "")
|
||||
message(FATAL_ERROR "VERSION is not set and failed to get from git")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
string(REGEX REPLACE "^v" "" VERSION "${VERSION}")
|
||||
endif()
|
||||
|
||||
project(caelestia-shell VERSION ${VERSION} LANGUAGES CXX)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue