diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-28 20:58:42 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-28 20:58:42 +1000 |
| commit | f39bcb0cd0ba749f592b30cc9ccbaba1c5bb3abd (patch) | |
| tree | fc9f1ad2b8ea7ae0053a59628cc569874d515460 | |
| parent | ci: add release workflow (diff) | |
| download | caelestia-shell-f39bcb0cd0ba749f592b30cc9ccbaba1c5bb3abd.tar.gz caelestia-shell-f39bcb0cd0ba749f592b30cc9ccbaba1c5bb3abd.tar.bz2 caelestia-shell-f39bcb0cd0ba749f592b30cc9ccbaba1c5bb3abd.zip | |
cmake: strip prefixed versions when passed in
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8689d04..bbf604a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,10 +10,10 @@ if(NOT DEFINED VERSION) if("${VERSION}" STREQUAL "") message(FATAL_ERROR "VERSION is not set and failed to get from git") endif() - - string(REGEX REPLACE "^v" "" VERSION "${VERSION}") endif() +string(REGEX REPLACE "^v" "" VERSION "${VERSION}") + project(caelestia-shell VERSION ${VERSION} LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) |