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,10 +10,10 @@ if(NOT DEFINED VERSION)
|
||||||
if("${VERSION}" STREQUAL "")
|
if("${VERSION}" STREQUAL "")
|
||||||
message(FATAL_ERROR "VERSION is not set and failed to get from git")
|
message(FATAL_ERROR "VERSION is not set and failed to get from git")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
string(REGEX REPLACE "^v" "" VERSION "${VERSION}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
string(REGEX REPLACE "^v" "" VERSION "${VERSION}")
|
||||||
|
|
||||||
project(caelestia-shell VERSION ${VERSION} LANGUAGES CXX)
|
project(caelestia-shell VERSION ${VERSION} LANGUAGES CXX)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue